summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2013-07-30 16:18:42 (GMT)
committerColin Watson <cjwatson@debian.org>2014-05-06 08:33:34 (GMT)
commitc0f8fb8b996b201005686502fe98494638ad59c9 (patch)
tree7d37ca38abe839db13e889230c2e78ccc62220ff /functions
parent0e1c6ac212a7c209d30fc22b6d6d34f51d37b44a (diff)
downloaddebootstrap-c0f8fb8b996b201005686502fe98494638ad59c9.zip
debootstrap-c0f8fb8b996b201005686502fe98494638ad59c9.tar.gz
debootstrap-c0f8fb8b996b201005686502fe98494638ad59c9.tar.bz2
Add uncompressed data.tar deb member support
These are currently not accepted by the Debian archive, but have been supported since dpkg 1.10.24, and they do not incur any additional dependency from the host system. This is mostly for completeness' sake, as Debian base packages with uncompressed data.tar members are probably not going to be used at all.
Diffstat (limited to 'functions')
-rw-r--r--functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions b/functions
index 4e3955a..8fc0bee 100644
--- a/functions
+++ b/functions
@@ -813,12 +813,13 @@ extract_ar_deb_field () {
extract_ar_deb_data () {
local pkg="$1"
- local tarball=$(ar -t "$pkg" | grep "^data.tar.[bgx]z")
+ local tarball=$(ar -t "$pkg" | grep "^data.tar")
case "$tarball" in
data.tar.gz) cat_cmd=zcat ;;
data.tar.bz2) cat_cmd=bzcat ;;
data.tar.xz) cat_cmd=xzcat ;;
+ data.tar) cat_cmd=cat ;;
*) error 1 UNKNOWNDATACOMP "Unknown compression type for %s in %s" "$tarball" "$pkg" ;;
esac