summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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'
;;
*)