From 8d37c7b72a19459b146eaf4fcab01d6971d7cce5 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sun, 14 Aug 2022 17:34:41 +0200 Subject: [PATCH] fixed missing nil check and execution of db update --- utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.go b/utils.go index 6bffa13..bff5e34 100644 --- a/utils.go +++ b/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) } } }