diff options
author | kpcyrd <git@rxv.cc> | 2017-11-18 18:49:42 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-11-18 18:14:09 +0000 |
commit | 11fc9aaf0139c4617df303e7834a455e24b8a389 (patch) | |
tree | 85d4d5a596c9070ad0c41f61f4c327cac8d9c41a /bin | |
parent | d8225a016c01077bbee1389dcb8dc6344da80d9f (diff) | |
download | jenkins.debian.net-11fc9aaf0139c4617df303e7834a455e24b8a389.tar.xz |
reproducible-archlinux: fix lost packages
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_build_archlinux_pkg.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh index b8ff01c7..3efafa38 100755 --- a/bin/reproducible_build_archlinux_pkg.sh +++ b/bin/reproducible_build_archlinux_pkg.sh @@ -294,11 +294,16 @@ elif [ "$1" = "1" ] || [ "$1" = "2" ] ; then else second_build fi - # preserve results and delete build directory - mv -v /tmp/$SRCPACKAGE-$(basename $TMPDIR)/$SRCPACKAGE/*.pkg.tar.xz $TMPDIR/b$MODE/$SRCPACKAGE/ || ls /tmp/$SRCPACKAGE-$(basename $TMPDIR)/$SRCPACKAGE/ - rm -r /tmp/$SRCPACKAGE-$(basename $TMPDIR)/ - echo "$(date -u) - build #$MODE for $SRCPACKAGE on $HOSTNAME done." - exit 0 + + # preserve results and delete build directory + if ! mv -v /tmp/$SRCPACKAGE-$(basename $TMPDIR)/$SRCPACKAGE/trunk/*.pkg.tar.xz $TMPDIR/b$MODE/$SRCPACKAGE/; then + echo "$(date -u) - build #$MODE for $SRCPACKAGE on $HOSTNAME didn't build a package!" + find /tmp/$SRCPACKAGE-$(basename $TMPDIR)/$SRCPACKAGE/ + fi + + rm -r /tmp/$SRCPACKAGE-$(basename $TMPDIR)/ + echo "$(date -u) - build #$MODE for $SRCPACKAGE on $HOSTNAME done." + exit 0 fi # |