From 84b567815c745a5f34e3bc3ecc917d7cd40d8c75 Mon Sep 17 00:00:00 2001 From: Adrian Havill Date: Fri, 15 Oct 2004 21:02:36 +0000 Subject: [PATCH] add "-f" (--force) to gunzip and bunzip2 for corner cases so that rpmbuild doesn't interactively ask to overwrite when it doesn't need to --- brp-compress | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/brp-compress b/brp-compress index 28051d9..3f76fe5 100755 --- a/brp-compress +++ b/brp-compress @@ -23,9 +23,9 @@ do [ "`basename $f`" = "dir" ] && continue case "$f" in - *.Z) gunzip $f; b=`echo $f | sed -e 's/\.Z$//'`;; - *.gz) gunzip $f; b=`echo $f | sed -e 's/\.gz$//'`;; - *.bz2) bunzip2 $f; b=`echo $f | sed -e 's/\.bz2$//'`;; + *.Z) gunzip -f $f; b=`echo $f | sed -e 's/\.Z$//'`;; + *.gz) gunzip -f $f; b=`echo $f | sed -e 's/\.gz$//'`;; + *.bz2) bunzip2 -f $f; b=`echo $f | sed -e 's/\.bz2$//'`;; *) b=$f;; esac