Make sure brp-compress doesn't go interactive in corner cases
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 27 Jan 2010 07:26:36 +0000 (09:26 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 27 Jan 2010 07:26:36 +0000 (09:26 +0200)
- add --force to uncompressing so in corner cases it'll just overwrite
  instead of stopping to ask interactively

scripts/brp-compress

index 2c28237..3c8e757 100755 (executable)
@@ -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