summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-07-09 14:57:17 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-07-09 19:06:57 +0200
commitf31b698549231d68451dbb8fd1184ad375eb5e64 (patch)
tree1c43c626b7e2d2f4e889f9af98c04e6642c5e0d6 /contrib
parent772f80ea8bc2eefa2bff3873187ea9433b14562a (diff)
downloadsssd-f31b698549231d68451dbb8fd1184ad375eb5e64.tar.gz
sssd-f31b698549231d68451dbb8fd1184ad375eb5e64.tar.xz
sssd-f31b698549231d68451dbb8fd1184ad375eb5e64.zip
CONTRIB: Fix creation of tar.gz with old version of git
git archive needn't have support for tar.gz format: [testm1 contrib]# git --version git version 1.7.1 Thanks Sami K Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/fedora/make_srpm.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/fedora/make_srpm.sh b/contrib/fedora/make_srpm.sh
index 0e16617f0..d3b8b1b84 100755
--- a/contrib/fedora/make_srpm.sh
+++ b/contrib/fedora/make_srpm.sh
@@ -151,10 +151,10 @@ sed -e "s/@PACKAGE_NAME@/$PACKAGE_NAME/" \
> "$RPMBUILD/SPECS/$PACKAGE_NAME.spec"
NAME="$PACKAGE_NAME-$PACKAGE_VERSION"
-git archive --format=tar.gz --prefix="$NAME"/ \
- --output "$RPMBUILD/SOURCES/$NAME.tar.gz" \
+git archive --format=tar --prefix="$NAME"/ \
--remote="file://$SRC_DIR" \
- HEAD
+ HEAD \
+ | gzip > "$RPMBUILD/SOURCES/$NAME.tar.gz"
cp "$SRC_DIR"/contrib/*.patch "$RPMBUILD/SOURCES" 2>/dev/null
add_patches "$RPMBUILD/SPECS/$PACKAGE_NAME.spec" \