Fix issue with package parsing

This commit is contained in:
ferreo 2024-10-02 20:21:14 +01:00
parent 392777475a
commit 612646eebc

View File

@ -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)