diff options
author | Otavio Salvador <otavio@debian.org> | 2009-11-27 22:26:18 (GMT) |
---|---|---|
committer | Otavio Salvador <otavio@debian.org> | 2009-11-27 22:26:18 (GMT) |
commit | 8d4cf26cb02147374f7f668ad48f56da664c8f40 (patch) | |
tree | 1810394a14642441aa1bdcfbd88600db70b69b43 /scripts/ubuntu/breezy | |
parent | d48c8e453ae75ee19b7a1a4a14c899209eac083e (diff) | |
download | debootstrap-8d4cf26cb02147374f7f668ad48f56da664c8f40.zip debootstrap-8d4cf26cb02147374f7f668ad48f56da664c8f40.tar.gz debootstrap-8d4cf26cb02147374f7f668ad48f56da664c8f40.tar.bz2 |
* Refactor deb extractors into two new functions.
* Use dpkg-deb if available instead of ar (closes: #557296).
* Add an --extractor option to override the automatic extractor selection.
r61537
Diffstat (limited to '')
-rw-r--r-- | scripts/ubuntu/breezy | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/ubuntu/breezy b/scripts/ubuntu/breezy index f445598..2646ca2 100644 --- a/scripts/ubuntu/breezy +++ b/scripts/ubuntu/breezy @@ -49,11 +49,7 @@ first_stage_install () { x_feign_install () { local pkg="$1" local deb="$(debfor $pkg)" - local ver="$( - ar -p "$TARGET/$deb" control.tar.gz | zcat | - tar -O -xf - control ./control 2>/dev/null | - grep -i ^Version: | sed -e 's/[^:]*: *//' | head -n 1 - )" + local ver="$(extract_deb_field "$TARGET/$deb" Version)" mkdir -p "$TARGET/var/lib/dpkg/info" |