From 5f559d4e28a5b89235dddca070d6355f356ddd00 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Wed, 23 Sep 2009 09:34:09 +0000 Subject: * Only use dpkg from the chroot, as there is no guarantee dpkg is available outside of the chroot (d-i installation for example). r60832 --- functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'functions') 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/^ *//' } -- cgit v1.2.3