From 11b004e9e2bb6e0767700f92559ed2d6f7e028d9 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Tue, 19 Aug 2014 15:34:07 +0100 Subject: Fix "possibly the package $pkg is at fault" warnings to account for changed error output in dpkg 1.17.2. --- debian/changelog | 7 +++++++ functions | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index ec4e4f0..8be279e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +debootstrap (1.0.61) UNRELEASED; urgency=medium + + * Fix "possibly the package $pkg is at fault" warnings to account for + changed error output in dpkg 1.17.2. + + -- Colin Watson Tue, 19 Aug 2014 15:33:09 +0100 + debootstrap (1.0.60) unstable; urgency=medium [ Adam Conrad ] diff --git a/functions b/functions index 0d48390..c100fe2 100644 --- a/functions +++ b/functions @@ -908,7 +908,7 @@ in_target_failmsg () { msg="See %s for details" if [ -e "$TARGET/debootstrap/debootstrap.log" ]; then arg="$TARGET/debootstrap/debootstrap.log" - local pkg="$(grep '^dpkg: error processing ' "$TARGET/debootstrap/debootstrap.log" | head -n 1 | cut -d ' ' -f 4)" + local pkg="$(grep '^dpkg: error processing ' "$TARGET/debootstrap/debootstrap.log" | head -n 1 | sed 's/\(error processing \)\(package \|archive \)/\1/' | cut -d ' ' -f 4)" if [ -n "$pkg" ]; then msg="$msg (possibly the package $pkg is at fault)" fi -- cgit v0.12