summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorAurelien Jarno <aurel32@debian.org>2009-09-23 09:34:09 (GMT)
committerAurelien Jarno <aurel32@debian.org>2009-09-23 09:34:09 (GMT)
commit5f559d4e28a5b89235dddca070d6355f356ddd00 (patch)
tree2232796dfb145891693fb69585ec495c681b0f65 /functions
parentc6a38504bab2d8fc8bacaa884215789370c010ee (diff)
downloaddebootstrap-5f559d4e28a5b89235dddca070d6355f356ddd00.zip
debootstrap-5f559d4e28a5b89235dddca070d6355f356ddd00.tar.gz
debootstrap-5f559d4e28a5b89235dddca070d6355f356ddd00.tar.bz2
* Only use dpkg from the chroot, as there is no guarantee dpkg is
available outside of the chroot (d-i installation for example). r60832
Diffstat (limited to 'functions')
-rw-r--r--functions6
1 files changed, 3 insertions, 3 deletions
diff --git a/functions b/functions
index cefb66d..6f4d6d1 100644
--- a/functions
+++ b/functions
@@ -1062,12 +1062,12 @@ setup_available () {
done >"$TARGET/var/lib/dpkg/available"
for pkg; do
- echo "$pkg install" | dpkg --admindir "$TARGET/var/lib/dpkg" --set-selections
- done
+ echo "$pkg install"
+ done | in_target dpkg --set-selections
}
get_next_predep () {
- local stanza="$(dpkg --admindir "$TARGET/var/lib/dpkg" --predep-package)" || return 1
+ local stanza="$(in_target dpkg --predep-package)" || return 1
[ "$stanza" ] || return 1
echo "$stanza" | grep '^Package:' | sed 's/^Package://; s/^ *//'
}