1
0
forked from ALHP/ALHP.GO

error if svn2git version is not initialized

This commit is contained in:
2022-01-21 12:33:45 +01:00
parent d574252d9b
commit 761cc47c3a
2 changed files with 6 additions and 1 deletions

View File

@@ -348,6 +348,9 @@ func (b *BuildManager) parseWorker() {
switch err.(type) {
default:
log.Warningf("[%s/%s] Problem solving dependencies: %v", pkg.FullRepo, pkg.Srcinfo.Pkgbase, err)
b.repoPurge[pkg.FullRepo] <- []*BuildPackage{pkg}
b.parseWG.Done()
continue
case MultiplePKGBUILDError:
log.Infof("Skipped %s: Multiple PKGBUILDs for dependency found: %v", pkg.Srcinfo.Pkgbase, err)
pkg.DbPackage = pkg.DbPackage.Update().SetStatus(dbpackage.StatusSkipped).SetSkipReason("multiple PKGBUILD for dep. found").SaveX(context.Background())

View File

@@ -1117,9 +1117,11 @@ func (p *BuildPackage) isMirrorLatest(h *alpm.Handle) (bool, alpm.IPackage, stri
}).SVN2GITVersion(h)
if err != nil {
return false, nil, "", err
} else if svn2gitVer == "" {
return false, nil, "", fmt.Errorf("no svn2git version")
}
if svn2gitVer != "" && alpm.VerCmp(svn2gitVer, pkg.Version()) > 0 {
if alpm.VerCmp(svn2gitVer, pkg.Version()) > 0 {
return false, pkg, svn2gitVer, nil
}
}