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:
38
38
'
39
39
}
40
40
41
+ function compress
42
+ {
43
+ if command -v pbzip2 & > /dev/null; then
44
+ echo ' pbzip2'
45
+ else
46
+ echo ' bzip2'
47
+ fi
48
+ }
49
+
41
50
if [ $_MOCK_OLD_CHROOT ]
42
51
then
43
- mock_args=" --old-chroot"
52
+ mock_args=" --old-chroot"
44
53
fi
45
54
46
55
relver=1
133
142
134
143
print_info " Creating source tarball"
135
144
# 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
137
146
138
147
print_info " Creating source package"
139
148
# Build source package
148
157
fi
149
158
150
159
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_' )
152
161
153
162
print_info " Source package created: $srpm "
154
163
fi
You can’t perform that action at this time.
0 commit comments