From 28d2a7d9c47562e77a73564df772d7fba52304d9fc88947a2888cf1f3ba9ae71 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 2 Jun 2017 09:46:10 +0000 Subject: [PATCH] Accepting request 500051 from home:bmwiedemann:branches:Base:System delete file from tar without repacking to make build reproducible also fail on error OBS-URL: https://build.opensuse.org/request/show/500051 OBS-URL: https://build.opensuse.org/package/show/Base:System/figlet?expand=0&rev=12 --- figlet-licpatch.sh | 7 ++++--- figlet.changes | 6 ++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/figlet-licpatch.sh b/figlet-licpatch.sh index bfc73a0..5648638 100644 --- a/figlet-licpatch.sh +++ b/figlet-licpatch.sh @@ -7,13 +7,14 @@ if test -f "$1/figlet-$VERSION.tar.gz" ; then if test -d $TMPDIR ; then trap "rm -rf \"$TMPDIR\" \"$1/figlet-$VERSION-patched.tar.bz2\"" ERR cd $TMPDIR - tar -xzf "$1/figlet-$VERSION.tar.gz" - rm -f figlet-$VERSION/fonts/jis0201.flc - tar -cjf "$1/figlet-$VERSION-patched.tar.bz2" figlet-$VERSION + gzip -cd "$1/figlet-$VERSION.tar.gz" > "$1/figlet-$VERSION-patched.tar" + tar --delete -f "$1/figlet-$VERSION-patched.tar" figlet-$VERSION/fonts/jis0201.flc + bzip2 -f "$1/figlet-$VERSION-patched.tar" cd - 1>/dev/null rm -Rf $TMPDIR else echo "creating tmp dir failed" + exit 102 fi else echo "file: $1/figlet-$VERSION.tar.gz doesn't exist" diff --git a/figlet.changes b/figlet.changes index 7595ca0..2376d5e 100644 --- a/figlet.changes +++ b/figlet.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 31 09:57:37 UTC 2017 - bwiedemann@suse.com + +- delete file from tar without repacking + to make build reproducible + ------------------------------------------------------------------- Sat Mar 14 14:26:36 UTC 2015 - benoit.monin@gmx.fr