summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-01-27 09:26:36 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-01-27 09:26:36 +0200
commit010b342d6229ae633c84282dbb6b9e5a9d2127b0 (patch)
tree996157058fbac10378b04fb3fc111745385c0cd7 /scripts
parentfa462d69571cfe7321b2a5d8dcafa4db0a4831ae (diff)
downloadrpm-010b342d6229ae633c84282dbb6b9e5a9d2127b0.tar.gz
rpm-010b342d6229ae633c84282dbb6b9e5a9d2127b0.tar.bz2
rpm-010b342d6229ae633c84282dbb6b9e5a9d2127b0.zip
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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/brp-compress6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/brp-compress b/scripts/brp-compress
index 2c2823742..3c8e7577b 100755
--- a/scripts/brp-compress
+++ b/scripts/brp-compress
@@ -23,9 +23,9 @@ do
[ "`basename $f`" = "dir" ] && 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