From 5c7af8b26fed67fd1410430b3715b0ff7a10852b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 27 Jul 2012 17:38:46 +0000 Subject: Make sure brp-compress doesn't go interactive in corner cases - add --force to uncompressing so in corner cases it'll just overwrite instead of stopping to ask interactively (rpm.org, Panu Matilainen , 2010-01-27) --- NEWS | 1 + brp-compress | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index b474baf..b728163 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ - sync brp-compress with upstream rpm.org: o add *.xz and *.lzma recompress support o avoid some unnecessary command invocations in scripts + o make sure brp-compress doesn't go interactive in corner cases - sync find-debuginfo.sh with upstream rpm.org: o add -r flag to find-debuginfo.sh to invoke eu-strip --reloc-debug-sections (Mark Wielaard, 2011-05-25) diff --git a/brp-compress b/brp-compress index d8f9f03..e4da043 100755 --- a/brp-compress +++ b/brp-compress @@ -24,9 +24,9 @@ do [ -f "$f" ] || continue case "$f" in - *.gz|*.Z) gunzip $f; b=`echo $f | sed -e 's/\.\(gz\|Z\)$//'`;; - *.bz2) bunzip2 $f; b=`echo $f | sed -e 's/\.bz2$//'`;; - *.xz|*.lzma) unxz $f; b=`echo $f | sed -e 's/\.\(xz\|lzma\)$//'`;; + *.gz|*.Z) gunzip -f $f; b=`echo $f | sed -e 's/\.\(gz\|Z\)$//'`;; + *.bz2) bunzip2 -f $f; b=`echo $f | sed -e 's/\.bz2$//'`;; + *.xz|*.lzma) unxz -f $f; b=`echo $f | sed -e 's/\.\(xz\|lzma\)$//'`;; *) b=$f;; esac -- cgit v1.2.1