summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2009-09-24 18:56:46 (GMT)
committerColin Watson <cjwatson@debian.org>2009-09-24 18:56:46 (GMT)
commitb969c120d820f09155581a962fcf197d3adc59ba (patch)
tree3a1744879e99af8322366f32726e9efa45df848c /functions
parentac1e53ee8ab9680b64f05efb9a4eef81d9928d9e (diff)
downloaddebootstrap-b969c120d820f09155581a962fcf197d3adc59ba.zip
debootstrap-b969c120d820f09155581a962fcf197d3adc59ba.tar.gz
debootstrap-b969c120d820f09155581a962fcf197d3adc59ba.tar.bz2
Ignore failures from dpkg --predep-package. It exits 1 if there are no
suitable packages available, which isn't an error for us, but in_target complains anyway, so just use in_target_nofail; the termination condition is handled immediately afterwards anyway. r60843
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 6f4d6d1..1e52dd1 100644
--- a/functions
+++ b/functions
@@ -1067,7 +1067,7 @@ setup_available () {
}
get_next_predep () {
- local stanza="$(in_target dpkg --predep-package)" || return 1
+ local stanza="$(in_target_nofail dpkg --predep-package)"
[ "$stanza" ] || return 1
echo "$stanza" | grep '^Package:' | sed 's/^Package://; s/^ *//'
}