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
This commit is contained in:
Marcus Meissner 2017-06-02 09:46:10 +00:00 committed by Git OBS Bridge
parent 49b0615456
commit 28d2a7d9c4
2 changed files with 10 additions and 3 deletions

View File

@ -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"

View File

@ -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