[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Arch Linux: only move old schroot away if it exists
Holger Levsen
gitlab at salsa.debian.org
Sat Jan 12 20:30:51 GMT 2019
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
b0af8956 by Holger Levsen at 2019-01-12T20:30:36Z
reproducible Arch Linux: only move old schroot away if it exists
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_setup_archlinux_schroot.sh
Changes:
=====================================
bin/reproducible_setup_archlinux_schroot.sh
=====================================
@@ -45,9 +45,11 @@ bootstrap() {
sudo rm -rf --one-file-system "$SCHROOT_BASE/root.x86_64/"
sudo tar xzf archlinux-bootstrap-$BOOTSTRAP_DATE-x86_64.tar.gz -C $SCHROOT_BASE
- mv "$SCHROOT_BASE/$TARGET" "$SCHROOT_BASE/$TARGET.old"
+ if [ -d "$SCHROOT_BASE/$TARGET" ] ; then
+ mv "$SCHROOT_BASE/$TARGET" "$SCHROOT_BASE/$TARGET.old"
+ sudo rm -rf --one-file-system "$SCHROOT_BASE/$TARGET.old"
+ fi
mv $SCHROOT_BASE/root.x86_64 $SCHROOT_BASE/$TARGET
- sudo rm -rf --one-file-system "$SCHROOT_BASE/$TARGET.old"
rm archlinux-bootstrap-$BOOTSTRAP_DATE-x86_64.tar.gz
fi
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/b0af8956eb4c94bd93b4ad205525812975cfd427
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/b0af8956eb4c94bd93b4ad205525812975cfd427
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20190112/f778a81b/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list