File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,18 @@ Usage:
3838'
3939}
4040
41+ function compress
42+ {
43+ if command -v pbzip2 & > /dev/null; then
44+ echo ' pbzip2'
45+ else
46+ echo ' bzip2'
47+ fi
48+ }
49+
4150if [ $_MOCK_OLD_CHROOT ]
4251then
43- mock_args=" --old-chroot"
52+ mock_args=" --old-chroot"
4453fi
4554
4655relver=1
133142
134143 print_info " Creating source tarball"
135144 # Create source tarball
136- git -C .. archive --format=tar --prefix=qgis-$version / HEAD | bzip2 > sources/qgis-$version .tar.bz2
145+ git -C .. archive --format=tar --prefix=qgis-$version / HEAD | compress > sources/qgis-$version .tar.bz2
137146
138147 print_info " Creating source package"
139148 # Build source package
148157 fi
149158
150159 srpm=$( grep -e ' Wrote: .*\.src\.rpm' $OUTDIR /build.log |
151- sed ' s_Wrote: /builddir/build/SRPMS/\(.*\)_\1_' )
160+ sed ' s_Wrote: /builddir/build/SRPMS/\(.*\)_\1_' )
152161
153162 print_info " Source package created: $srpm "
154163fi
You can’t perform that action at this time.
0 commit comments