mirror of
https://github.com/macports/mpbot-github.git
synced 2026-07-13 03:18:39 -07:00
use --work-dir with mpbb list-subports (2/2)
This commit is contained in:
committed by
Clemens Lang
parent
730085a996
commit
c91742c933
+2
-2
@@ -7,8 +7,8 @@ import (
|
||||
)
|
||||
|
||||
// List all subports of a given port.
|
||||
func ListSubports(port string) ([]string, error) {
|
||||
listCmd := exec.Command("mpbb", "list-subports", "--archive-site=", "--archive-site-private=", port)
|
||||
func ListSubports(port, workDir string) ([]string, error) {
|
||||
listCmd := exec.Command("mpbb", "--work-dir", workDir, "list-subports", "--archive-site=", "--archive-site-private=", port)
|
||||
stdout, err := listCmd.StdoutPipe()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user