forked from ALHP/ALHP.GO
error if svn2git version is not initialized
This commit is contained in:
3
main.go
3
main.go
@@ -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())
|
||||
|
4
utils.go
4
utils.go
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user