forked from ALHP/ALHP.GO
Compare commits
3 Commits
567f8d903f
...
dd118c5f97
| Author | SHA1 | Date | |
|---|---|---|---|
| dd118c5f97 | |||
| ca85586118 | |||
| 78666f9899 |
3
main.go
3
main.go
@@ -408,9 +408,12 @@ func (b *BuildManager) syncWorker(ctx context.Context) error {
|
||||
eligible, err := pkg.isEligible(ctx)
|
||||
if err != nil {
|
||||
log.Infof("Unable to determine status for package %s: %v", pkg.Pkgbase, err)
|
||||
b.repoPurge[pkg.FullRepo] <- []*ProtoPackage{pkg}
|
||||
continue
|
||||
}
|
||||
if !eligible {
|
||||
log.Debugf("skipped package %s (%v)", pkg.Pkgbase, err)
|
||||
b.repoPurge[pkg.FullRepo] <- []*ProtoPackage{pkg}
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
@@ -698,6 +698,10 @@ func (p *ProtoPackage) findPkgFiles() error {
|
||||
return err
|
||||
}
|
||||
|
||||
if p.DbPackage == nil {
|
||||
return fmt.Errorf("unable to find Pkgfiles without dbpakg present")
|
||||
}
|
||||
|
||||
var realPkgs []string
|
||||
for _, realPkg := range p.DbPackage.Packages {
|
||||
realPkgs = append(realPkgs, realPkg)
|
||||
|
||||
13
utils.go
13
utils.go
@@ -256,12 +256,13 @@ func genQueue(path string) ([]*ProtoPackage, error) {
|
||||
}
|
||||
|
||||
pkgbuilds = append(pkgbuilds, &ProtoPackage{
|
||||
Pkgbuild: pkgbuild,
|
||||
Pkgbase: mPkgbuild.PkgBase(),
|
||||
Repo: dbpackage.Repository(mPkgbuild.Repo()),
|
||||
March: march,
|
||||
FullRepo: mPkgbuild.Repo() + "-" + march,
|
||||
Hash: b3s,
|
||||
Pkgbuild: pkgbuild,
|
||||
Pkgbase: mPkgbuild.PkgBase(),
|
||||
Repo: dbpackage.Repository(mPkgbuild.Repo()),
|
||||
March: march,
|
||||
FullRepo: mPkgbuild.Repo() + "-" + march,
|
||||
Hash: b3s,
|
||||
DbPackage: dbPkg,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user