aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-satisfydepends
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-satisfydepends')
-rw-r--r--pbuilder-satisfydepends4
1 files changed, 3 insertions, 1 deletions
diff --git a/pbuilder-satisfydepends b/pbuilder-satisfydepends
index fec9f58..1af42c6 100644
--- a/pbuilder-satisfydepends
+++ b/pbuilder-satisfydepends
@@ -77,6 +77,7 @@ function checkbuilddep_internal () {
awk '
BEGIN{source=1}
/^$/ {source=0}
+/^Format:/ {source=1}
/^[^ ]*:/ {p=0}
tolower($0) ~ /^'"${BD_REGEXP}"':/ {p=1}
{if(p && source) {print $0}}' | \
@@ -139,7 +140,7 @@ tolower($0) ~ /^'"${BD_REGEXP}"':/ {p=1}
if [ "$SATISFIED" = "no" ]; then
echo "E: Could not satisfy build-dependency." >&2
if [ "$CONTINUE_FAIL" != "yes" ]; then
- exit 1
+ exit 2
fi
fi
done;
@@ -161,6 +162,7 @@ tolower($0) ~ /^'"${BD_REGEXP}"':/ {p=1}
for INSTALLPKG in $(cat "${DEBIAN_CONTROL}" | \
awk 'BEGIN{source=1}
/^$/ {source=0}
+/^Format:/ {source=1}
/^[^ ]*:/{p=0}
tolower($0) ~ /^'"${BC_REGEXP}"':/ {p=1}
{if(p && source) {print $0}}' | \