Skip to content

Commit

Permalink
Patches -G to copy directory instead of linking. --absdir is recogniz…
Browse files Browse the repository at this point in the history
…ed as a flag
  • Loading branch information
Jguer committed Oct 23, 2019
1 parent 203b493 commit 290d3d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions download.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func getPkgbuildsfromABS(pkgs []string, path string) (bool, error) {
return
}

_, stderr, err := capture(exec.Command("ln", "-s", filepath.Join(config.BuildDir, pkg, "trunk"), filepath.Join(path, pkg)))
_, stderr, err := capture(exec.Command("cp", "-r", filepath.Join(config.ABSDir, pkg, "trunk"), filepath.Join(path, pkg)))
mux.Lock()
downloaded++
if err != nil {
Expand All @@ -372,6 +372,5 @@ func getPkgbuildsfromABS(pkgs []string, path string) (bool, error) {
}

wg.Wait()
errs.Add(os.RemoveAll(filepath.Join(config.BuildDir, "packages")))
return len(missing) != 0, errs.Return()
}
1 change: 1 addition & 0 deletions parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ func isArg(arg string) bool {
case "d", "nodeps":
case "assume-installed":
case "dbonly":
case "absdir":
case "noprogressbar":
case "noscriptlet":
case "p", "print":
Expand Down

0 comments on commit 290d3d2

Please sign in to comment.