Use PCRE (#2349)
[termux-packages] / packages / debootstrap / functions.patch
CommitLineData
883187f2
FF
1diff -u -r ../debootstrap-1.0.91/functions ./functions
2--- ../debootstrap-1.0.91/functions 2017-07-25 05:02:27.000000000 +0200
3+++ ./functions 2017-08-09 23:16:36.589942373 +0200
4@@ -883,7 +883,7 @@
ecb00a9a
PR
5 extract_dpkg_deb_data () {
6 local pkg="$1"
883187f2 7
ecb00a9a
PR
8- dpkg-deb --fsys-tarfile "$pkg" | tar $EXTRACT_DEB_TAR_OPTIONS -xf -
9+ dpkg-deb --fsys-tarfile "$pkg" | proot --link2symlink tar $EXTRACT_DEB_TAR_OPTIONS -xf -
10 }
883187f2 11
ecb00a9a 12 # Raw .deb extractors
883187f2
FF
13@@ -922,6 +922,7 @@
14
15 if in_path $cat_cmd; then
16 ar -p "$pkg" "$tarball" | $cat_cmd | tar $EXTRACT_DEB_TAR_OPTIONS -xf -
ecb00a9a
PR
17+ ar -p "$pkg" "$tarball" | $cat_cmd | proot --link2symlink tar $EXTRACT_DEB_TAR_OPTIONS -xf -
18 else
19 error 1 UNPACKCMDUNVL "Extracting %s requires the %s command, which is not available" "$pkg" "$cat_cmd"
20 fi
883187f2 21@@ -1139,7 +1140,6 @@
ecb00a9a
PR
22 hurd*)
23 ;;
24 *)
25- setup_devices_simple
26 ;;
27 esac
28 }