don't requeue package if it has already disabled LTO
This commit is contained in:
parent
31af024b6a
commit
e1df856398
10
utils.go
10
utils.go
|
@ -931,9 +931,13 @@ func logHK() error {
|
|||
}
|
||||
} else if reLdError.Match(logContent) {
|
||||
log.Infof("[HK/%s/%s] fixable build-error detected (linker-error), requeueing package", pkg.March, pkg.Pkgbase)
|
||||
err = db.DbPackage.Update().Where(dbpackage.And(dbpackage.Pkgbase(pkg.Pkgbase), dbpackage.March(pkg.March),
|
||||
dbpackage.StatusEQ(dbpackage.StatusFailed))).ClearHash().SetStatus(dbpackage.StatusQueued).
|
||||
SetLto(dbpackage.LtoAutoDisabled).Exec(context.Background())
|
||||
err = db.DbPackage.Update().Where(
|
||||
dbpackage.And(
|
||||
dbpackage.Pkgbase(pkg.Pkgbase),
|
||||
dbpackage.March(pkg.March),
|
||||
dbpackage.StatusEQ(dbpackage.StatusFailed),
|
||||
dbpackage.LtoNotIn(dbpackage.LtoAutoDisabled, dbpackage.LtoDisabled),
|
||||
)).ClearHash().SetStatus(dbpackage.StatusQueued).SetLto(dbpackage.LtoAutoDisabled).Exec(context.Background())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue