fixed missing nil check and execution of db update

This commit is contained in:
2022-08-14 17:34:41 +02:00
parent 5ea43c896f
commit 8d37c7b72a

View File

@@ -185,8 +185,8 @@ func (b *BuildManager) refreshSRCINFOs(ctx context.Context, path string) error {
if err != nil { if err != nil {
log.Infof("Unable to determine status for package %s: %v", proto.Pkgbase, err) log.Infof("Unable to determine status for package %s: %v", proto.Pkgbase, err)
b.repoPurge[proto.FullRepo] <- []*ProtoPackage{proto} b.repoPurge[proto.FullRepo] <- []*ProtoPackage{proto}
} else { } else if proto.DbPackage != nil {
proto.DbPackage.Update().SetPkgbuild(proto.Pkgbuild) proto.DbPackage.Update().SetPkgbuild(proto.Pkgbuild).ExecX(ctx)
} }
} }
} }