diff options
author | Aurelien Jarno <aurel32@debian.org> | 2009-09-23 09:34:09 +0000 |
---|---|---|
committer | Aurelien Jarno <aurel32@debian.org> | 2009-09-23 09:34:09 +0000 |
commit | 5f559d4e28a5b89235dddca070d6355f356ddd00 (patch) | |
tree | 2232796dfb145891693fb69585ec495c681b0f65 /functions | |
parent | c6a38504bab2d8fc8bacaa884215789370c010ee (diff) | |
download | debootstrap-5f559d4e28a5b89235dddca070d6355f356ddd00.tar.gz |
* 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-- | functions | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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/^ *//' } |