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