Przeglądaj źródła

Stop prepare running twice

Prepare ends up getting ran twice every time we install a package,
theres not problems with doing so apart from a little inefficiency.

Previously the install flow would be like this:
	downlod sources + verify
	prepare + pkgver bump
	full build (prepare included)

Now on the last point pass no extract to use the srcdir from the
previous command and pass noprepare and holdver because we allready did
these steps previously.
morganamilo 7 lat temu
rodzic
commit
942e389d85
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      install.go

+ 2 - 2
install.go

@@ -597,7 +597,7 @@ func buildInstallPkgBuilds(dp *depPool, do *depOrder, srcinfos map[string]*gopkg
 
 		srcinfo := srcinfos[pkg.PackageBase]
 
-		args := []string{"--nobuild", "-fCc"}
+		args := []string{"--nobuild", "-fC"}
 
 		if incompatible.get(pkg.PackageBase) {
 			args = append(args, "--ignorearch")
@@ -636,7 +636,7 @@ func buildInstallPkgBuilds(dp *depPool, do *depOrder, srcinfos map[string]*gopkg
 			fmt.Println(bold(yellow(arrow)),
 				cyan(pkg.Name+"-"+pkg.Version)+bold(" Already made -- skipping build"))
 		} else {
-			args := []string{"-Ccf", "--noconfirm"}
+			args := []string{"-cf", "--noconfirm", "--noextract", "--noprepare", "--holdver"}
 
 			if incompatible.get(pkg.PackageBase) {
 				args = append(args, "--ignorearch")