[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Archlinux: cp is enough here (and nicely works around the permission problem)

Holger Levsen gitlab at salsa.debian.org
Mon Oct 1 15:59:19 BST 2018


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
b61b2ee8 by Holger Levsen at 2018-10-01T14:58:53Z
reproducible Archlinux: cp is enough here (and nicely works around the permission problem)

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_build_archlinux_pkg.sh


Changes:

=====================================
bin/reproducible_build_archlinux_pkg.sh
=====================================
@@ -549,7 +549,8 @@ elif [ "$1" = "1" ] || [ "$1" = "2" ] ; then
 
 	# preserve results and delete build directory
 	if [ -n "$(ls /tmp/$SRCPACKAGE-$(basename $TMPDIR)/*/trunk/*.pkg.tar.xz)" ] ; then
-		mv -v /tmp/$SRCPACKAGE-$(basename $TMPDIR)/*/trunk/*.pkg.tar.xz $TMPDIR/b$MODE/$SRCPACKAGE/
+		# copying is enough here, we delete after this if block anyway
+		cp --preserve=timestamps -v /tmp/$SRCPACKAGE-$(basename $TMPDIR)/*/trunk/*.pkg.tar.xz $TMPDIR/b$MODE/$SRCPACKAGE/
 	else
 		echo "$(date -u) - build #$MODE for $SRCPACKAGE on $HOSTNAME didn't build a package!"
 		# debug



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/b61b2ee87ed8fed34127760ad7bd3eeac2d0c996

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/b61b2ee87ed8fed34127760ad7bd3eeac2d0c996
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/20181001/6fd58a11/attachment.html>


More information about the Qa-jenkins-scm mailing list