aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xbrp-compress6
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