summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 90d4a673..ed762e8a 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -310,7 +310,9 @@ handle_reproducible() {
unregister_build() {
# unregister this build so it will immeditiatly tried again
- query_db "UPDATE schedule SET date_build_started = NULL, job = NULL WHERE package_id=$SRCPKGID"
+ if [ -n "$SRCPKGID" ] ; then
+ query_db "UPDATE schedule SET date_build_started = NULL, job = NULL WHERE package_id=$SRCPKGID"
+ fi
NOTIFY=""
}