fix edge-case, where a package was not cleared in the db because no files where present
This commit is contained in:
parent
3da529478b
commit
453c6d8a3a
@ -210,6 +210,9 @@ func (b *BuildManager) repoWorker(repo string) {
|
||||
log.Warningf("[%s/%s] unable to find files: %v", pkg.FullRepo, pkg.Pkgbase, err)
|
||||
continue
|
||||
} else if len(pkg.PkgFiles) == 0 {
|
||||
if pkg.DBPackage != nil {
|
||||
_ = pkg.DBPackage.Update().ClearRepoVersion().ClearTagRev().Exec(context.Background())
|
||||
}
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user