forked from ALHP/ALHP.GO
fixed missing nil check and execution of db update
This commit is contained in:
4
utils.go
4
utils.go
@@ -185,8 +185,8 @@ func (b *BuildManager) refreshSRCINFOs(ctx context.Context, path string) error {
|
||||
if err != nil {
|
||||
log.Infof("Unable to determine status for package %s: %v", proto.Pkgbase, err)
|
||||
b.repoPurge[proto.FullRepo] <- []*ProtoPackage{proto}
|
||||
} else {
|
||||
proto.DbPackage.Update().SetPkgbuild(proto.Pkgbuild)
|
||||
} else if proto.DbPackage != nil {
|
||||
proto.DbPackage.Update().SetPkgbuild(proto.Pkgbuild).ExecX(ctx)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user