]> git.donarmstrong.com Git - wannabuild.git/blobdiff - bin/wb-edos-builddebcheck
allow multiple distributions for list (including any, any-priv, any-unpriv)
[wannabuild.git] / bin / wb-edos-builddebcheck
index 582912de918bfbd621bbd283c0b45078359c44c9..400d1e3d9b7dfea47b8e1c700b6be408fccdbd04 100755 (executable)
@@ -43,6 +43,8 @@ if ($debug) {
     print "Edos options: $edosoptions\n";
 }
 
+# check that all stanzas in the binary package file have the same
+# architecture.
 $packagearch="";
 open(P,$packagefile);
 while (<P>) {
@@ -82,9 +84,8 @@ $binpackage="";
 while (<RESULT>) {
     if (/^\s+/) {
        if ($sourcestanza) {
-           s/^(\s*)$sourceprefix(.*)(depends on|conflicts with)/$1$2build-$3/o;
-           s/&gt;/>/;
-           s/&lt;/</;
+           s/^(\s*)$sourceprefix(.*)depends on/$1$2build-depends on/o;
+           s/^(\s*)$sourceprefix(.*) and (.*) conflict/$1$2 build-conflicts with $3/o;
            print;
            if (/depends on ([^\s]*) .*\{.*\}/) {
                push(@binqueue,$1);
@@ -93,7 +94,7 @@ while (<RESULT>) {
            $explanation .= $_;
        }
     } else {
-       if ($sourcestanza) {
+       if ($sourcestanza) {
            print "\n";
            $sourcestanza=0;
        }