changed repoPurge to work without srcinfo

This commit is contained in:
2021-11-19 23:47:19 +01:00
parent 908fad0923
commit 3e8f4711f0
2 changed files with 5 additions and 8 deletions

View File

@@ -438,8 +438,10 @@ func (b *BuildManager) repoWorker(repo string) {
}
var realPkgs []string
for _, realPkg := range pkg.Srcinfo.Packages {
realPkgs = append(realPkgs, realPkg.Pkgname)
for _, filePath := range pkg.PkgFiles {
fNameSplit := strings.Split(filepath.Base(filePath), "-")
pkgname := strings.Join(fNameSplit[:len(fNameSplit)-3], "-")
realPkgs = append(realPkgs, pkgname)
}
b.repoWG.Add(1)