Fix issue with package parsing
This commit is contained in:
parent
392777475a
commit
612646eebc
@ -72,10 +72,12 @@ func ProcessPackages() error {
|
|||||||
updateBinaryPackageFlags(updatedPackages)
|
updateBinaryPackageFlags(updatedPackages)
|
||||||
|
|
||||||
updatedPackages.ForEach(func(key string, pkg domain.SourcePackage) bool {
|
updatedPackages.ForEach(func(key string, pkg domain.SourcePackage) bool {
|
||||||
currentPackages.Set(key, pkg)
|
internalPackages.Set(key, pkg)
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
currentPackages = internalPackages
|
||||||
|
|
||||||
LastUpdateTime = time.Now()
|
LastUpdateTime = time.Now()
|
||||||
if err := helpers.DBInst.DropPackages(); err != nil {
|
if err := helpers.DBInst.DropPackages(); err != nil {
|
||||||
return fmt.Errorf("dropping packages: %w", err)
|
return fmt.Errorf("dropping packages: %w", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user