diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-12-20 11:37:49 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-12-20 11:37:49 +0100 |
commit | 4e7a6f1e1f43517004ef50487b3b53ab86ef724e (patch) | |
tree | aa8f627d107d8f8a9b9b31a6c2a35d98b44dc0b3 | |
parent | b5a884e4cd04ff8617c53d02adfec23f653b1813 (diff) | |
download | jenkins.debian.net-4e7a6f1e1f43517004ef50487b3b53ab86ef724e.tar.xz |
reproducible Debian: only unregister a build if SRCPKGID is set
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | bin/reproducible_build.sh | 4 |
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="" } |