Bump pkgver before parsing .SRCINFO

This commit is contained in:
morganamilo 2018-02-15 07:25:20 +00:00
parent 83491069d3
commit 8c3c125900
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

View file

@ -110,15 +110,6 @@ func install(parser *arguments) error {
return err
}
err = parseSRCINFOs(dc.AurMake)
if err != nil {
return err
}
err = parseSRCINFOs(dc.Aur)
if err != nil {
return err
}
if _, ok := arguments.options["gendb"]; ok {
fmt.Println("GenDB finished. No packages were installed")
return nil
@ -137,6 +128,15 @@ func install(parser *arguments) error {
return err
}
err = parseSRCINFOs(dc.AurMake)
if err != nil {
return err
}
err = parseSRCINFOs(dc.Aur)
if err != nil {
return err
}
err = buildInstallPkgBuilds(dc.AurMake, parser.targets)
if err != nil {
return err
@ -323,7 +323,7 @@ func dowloadPkgBuilds(pkgs []*rpc.Pkg) (err error) {
func downloadPkgBuildsSources(pkgs []*rpc.Pkg) (err error) {
for _, pkg := range pkgs {
dir := config.BuildDir + pkg.PackageBase + "/"
err = passToMakepkg(dir, "-f", "--verifysource")
err = passToMakepkg(dir, "--nobuild", "--nocheck", "--noprepare", "--nodeps")
if err != nil {
return
}