forked from ALHP/ALHP.GO
delete repo-version after purging it from repo
This commit is contained in:
5
main.go
5
main.go
@@ -798,6 +798,11 @@ func (b *BuildManager) repoWorker(repo string) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dbPkg := getDbPackage(pkg)
|
||||||
|
dbLock.Lock()
|
||||||
|
dbPkg = dbPkg.Update().SetRepoVersion("").SaveX(context.Background())
|
||||||
|
dbLock.Unlock()
|
||||||
|
|
||||||
for _, file := range pkg.PkgFiles {
|
for _, file := range pkg.PkgFiles {
|
||||||
check(os.Remove(file))
|
check(os.Remove(file))
|
||||||
check(os.Remove(file + ".sig"))
|
check(os.Remove(file + ".sig"))
|
||||||
|
Reference in New Issue
Block a user