makerpms: fix detection of support for --rsyncable flag in gzip.
authorMichael Adam <obnox@samba.org>
Sat, 17 Jan 2009 15:18:02 +0000 (16:18 +0100)
committerMichael Adam <obnox@samba.org>
Sat, 17 Jan 2009 15:33:11 +0000 (16:33 +0100)
Michael

packaging/RPM/makerpms.sh

index 3735b394d80ff944d2b149dce281a8b15db81993..37eca7de4618c29ee9fd2ccf209b31bf15f9083f 100755 (executable)
@@ -28,7 +28,7 @@ RPMBUILD="rpmbuild"
 VERSION=$(grep ^Version ${DIRNAME}/${SPECFILE} | sed -e 's/^Version:\ \+//')
 RELEASE=$(grep ^Release ${DIRNAME}/${SPECFILE} | sed -e 's/^Release:\ \+//')
 
-if gzip --rsyncable 2>&1 ; then
+if echo | gzip -c --rsyncable - > /dev/null 2>&1 ; then
        GZIP="gzip -9 --rsyncable"
 else
        GZIP="gzip -9"