summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-08 16:10:19 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-08 16:10:19 (EDT)
commitb9ee23921e1b2bf2e7edc500f371ede09c63689b (patch)
tree0e6544e09608ec3a0fb680a22c7fa39258564b02 /src
parenteb2b1217702bbb8409697f968e31a768f7e77d6b (diff)
Support uncompressed upstream source archives.
Diffstat (limited to 'src')
-rw-r--r--src/ob-unpacksource.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/ob-unpacksource.sh b/src/ob-unpacksource.sh
index 09aedfa..cd2666a 100644
--- a/src/ob-unpacksource.sh
+++ b/src/ob-unpacksource.sh
@@ -60,7 +60,7 @@ unpack_upstream()
get_upstream_archive()
{
- upstream_archive_base="${OPK_SOURCE}-${OPK_SOURCE_VERSION_UPSTREAM}.orig.tar."
+ upstream_archive_base="${OPK_SOURCE}-${OPK_SOURCE_VERSION_UPSTREAM}.orig.tar"
upstream_archive="$(find '..' -name "${upstream_archive_base}*")"
case "$(echo "${upstream_archive}" | grep -v '^$' | wc -l)" in
0)
@@ -78,16 +78,19 @@ get_upstream_compression()
{
z_ext="${upstream_archive#../${upstream_archive_base}}"
case "${z_ext}" in
- gz)
+ '')
+ upstream_archive_z=''
+ ;;
+ '.gz')
upstream_archive_z='z'
;;
- bz2)
+ '.bz2')
upstream_archive_z='j'
;;
- lz)
+ '.lz')
upstream_archive_z='a'
;;
- Z)
+ '.Z')
upstream_archive_z='Z'
;;
*)