From: Joachim Breitner Date: Thu, 30 Jul 2009 09:41:10 +0000 (+0200) Subject: Parse Reason from edos-debcheck X-Git-Url: https://git.donarmstrong.com/?p=wannabuild.git;a=commitdiff_plain;h=2ac5454880b42ac90db3bca61fc04fd82c993987 Parse Reason from edos-debcheck This adjust wb-debbuild-depends to the output of edos-debcheck on lenny. --- diff --git a/bin/wb-edos-builddebcheck b/bin/wb-edos-builddebcheck index b8a2411..0cec41c 100755 --- a/bin/wb-edos-builddebcheck +++ b/bin/wb-edos-builddebcheck @@ -80,7 +80,9 @@ $explanation=""; $binpackage=""; while () { - if (/^\s+/) { + if (/^The following constraints cannot be satisfied:/) { + next + } elsif (/^\s+/) { if ($sourcestanza) { s/^(\s*)$sourceprefix(.*)(depends on|conflicts with)/$1$2build-$3/o; s/>/>/; diff --git a/tests/tests.sh b/tests/tests.sh index 483a4ea..4ea28da 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -195,8 +195,7 @@ Binary: bin-b __END__ wanna-build -A amd64 -b amd64/build-db --merge-all $testdir/Packages $testdir/quinn-diff $testdir/Sources -# does not work on stable: -#wanna-build -A amd64 -b amd64/build-db --info src-b | assert_grep "bin-a-1 (>= 2)" +wanna-build -A amd64 -b amd64/build-db --info src-b | assert_grep "bin-a-1 (>= 2)" wanna-build -A amd64 -b amd64/build-db --info src-b | assert_grep " State .*: BD-Uninstallable" wanna-build -A amd64 -b amd64/build-db --list bd-uninstallable | assert_grep "src-b"