summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2017-03-03 15:29:48 -0500
committerHolger Levsen <holger@layer-acht.org>2017-03-03 21:33:29 +0100
commitd41df2b23f17becec1f6a3b47a82925da9b0fa0c (patch)
tree550a9f944fa0a1d060a5a621647ee5f7ab165797 /bin
parent5e4e8cf440bee4d54716c218820330bd2fee4d82 (diff)
downloadjenkins.debian.net-d41df2b23f17becec1f6a3b47a82925da9b0fa0c.tar.xz
reproducible FreeBSD: copy packages back with a tar pipeline
scp -r converts the latest symlink directory into a copy of the target directory, resulting in two copies of each package. Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_freebsd.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh
index 9c4aa8bb..472835e9 100755
--- a/bin/reproducible_freebsd.sh
+++ b/bin/reproducible_freebsd.sh
@@ -34,7 +34,8 @@ save_freebsd_results() {
$RSSH "sudo find $TMPDIR -newer $TMPDIR -exec touch -d '$DUMMY_DATE' {} \;"
$RSSH "sudo find $TMPDIR -print0 | LC_ALL=C sort -z | sudo tar --no-recursion --null -T - -cJf $TMPDIR.tar.xz"
$RSCP:$TMPDIR.tar.xz $TMPDIR/$RUN/$TARGET_NAME.tar.xz
- $RSCP:/usr/obj/usr/src/repo $TMPDIR/$RUN/
+ # Copy packages back with a tar pipeline
+ $RSSH "sudo tar -C /usr/obj/usr/src -cf - repo" | tar -x -C $TMPDIR/$RUN/ -f -
$RSSH "sudo chflags -R noschg $TMPDIR ; sudo rm -r $TMPDIR $TMPDIR.tar.xz ; mkdir $TMPDIR"
}