From 4e7a6f1e1f43517004ef50487b3b53ab86ef724e Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 20 Dec 2016 11:37:49 +0100 Subject: reproducible Debian: only unregister a build if SRCPKGID is set Signed-off-by: Holger Levsen --- bin/reproducible_build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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="" } -- cgit v1.2.3-54-g00ecf