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 {
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user