From 290d3d2c438618db05ea0248f076382035bab465 Mon Sep 17 00:00:00 2001 From: Jguer Date: Wed, 23 Oct 2019 12:31:29 +0100 Subject: [PATCH] Patches -G to copy directory instead of linking. --absdir is recognized as a flag --- download.go | 3 +-- parser.go | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/download.go b/download.go index f77603837..ffef549cf 100644 --- a/download.go +++ b/download.go @@ -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 { @@ -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() } diff --git a/parser.go b/parser.go index c0f01714e..d9962fb00 100644 --- a/parser.go +++ b/parser.go @@ -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":