From b9ee23921e1b2bf2e7edc500f371ede09c63689b Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 08 Oct 2012 16:10:19 -0400 Subject: Support uncompressed upstream source archives. --- 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' ;; *) -- cgit v0.9.1