]> git.donarmstrong.com Git - wannabuild.git/commitdiff
Parse Reason from edos-debcheck
authorJoachim Breitner <nomeata@debian.org>
Thu, 30 Jul 2009 09:41:10 +0000 (11:41 +0200)
committerJoachim Breitner <nomeata@debian.org>
Thu, 30 Jul 2009 09:41:10 +0000 (11:41 +0200)
This adjust wb-debbuild-depends to the output of edos-debcheck on lenny.

bin/wb-edos-builddebcheck
tests/tests.sh

index b8a241169a1f8477adae0e2168dd5b9b43d12b43..0cec41ceae960ee882ff61420803b80d2be2d953 100755 (executable)
@@ -80,7 +80,9 @@ $explanation="";
 $binpackage="";
 
 while (<RESULT>) {
-    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/&gt;/>/;
index 483a4ea9f62761786511eb2bf4daa1861cab6082..4ea28da0c8edbc3a7d303c4551cb4ef64ba71003 100755 (executable)
@@ -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"