From 6b79352a205a96cee441ae0c6247c4616097a517 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Thu, 8 Sep 2016 17:30:17 +0200 Subject: Pass -k to tar when extracting packages When installing with a merged /usr, the symlinks in / should not be replaced with real directories when extracting the packages. --- functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions b/functions index f633f73..60aea99 100644 --- a/functions +++ b/functions @@ -821,7 +821,7 @@ extract_dpkg_deb_field () { extract_dpkg_deb_data () { local pkg="$1" - dpkg-deb --fsys-tarfile "$pkg" | tar -xf - + dpkg-deb --fsys-tarfile "$pkg" | tar -kxf - } # Raw .deb extractors @@ -859,7 +859,7 @@ extract_ar_deb_data () { esac if type $cat_cmd >/dev/null 2>&1; then - ar -p "$pkg" "$tarball" | $cat_cmd | tar -xf - + ar -p "$pkg" "$tarball" | $cat_cmd | tar -kxf - else error 1 UNPACKCMDUNVL "Extracting %s requires the %s command, which is not available" "$pkg" "$cat_cmd" fi -- cgit v0.12