]> git.donarmstrong.com Git - wannabuild.git/blobdiff - bin/wanna-build
Even more gracefully handle edos-debcheck without reason explanation
[wannabuild.git] / bin / wanna-build
index b38bf09d1dfc1d1f3b6a844e97a84d2acabf43ba..82fb92985f3c292b8c38e24f25bacd0623418c38 100755 (executable)
@@ -188,7 +188,7 @@ my %options =
         export         => { arg => \$export_to, mode => "export" },
         "lock-for"     => { arg => \$lock_for_pid, mode => "lock-for" },
         "unlock-for"   => { arg => \$lock_for_pid, mode => "unlock-for" },
-        "act-on-behalve-of" => { arg => \$lock_for_pid },
+        "act-on-behalf-of" => { arg => \$lock_for_pid },
         "start-transaction" => { mode => "start-transaction" },
         "commit-transaction" => { mode => "commit-transaction" },
         "transactional" => { flag => \$transactional },
@@ -2591,6 +2591,7 @@ sub call_edos_depcheck {
                /^Package:\s*(\S+)$/mi and $key = $1;
                /^Failed-Why:(([^\n]|\n ([^\n]|\.))*)$/msi and $reason = $1;
                $reason =~ s/^\s*//mg;
+               $reason ||= 'No reason given by edos-debcheck';
 
                if (exists $interesting_packages{$key}) {
                    $interesting_packages{$key} = $reason;
@@ -2667,7 +2668,7 @@ Options:
     --export FILE: Export database to a ASCII file FILE
     --lock-for PID: Locks the database for the process with this pid
     --unlock-for PID: Unlocks the database for the process with this pid
-    --act-on-behalve-of PID: Ignores the log (if it is held by this pid)
+    --act-on-behalf-of PID: Ignores the log (if it is held by this pid)
     --start-transaction: Creates a copy of the state of the database, for
        use with --transactional. This overrides any previous uncommited
        transaction. Should only be used after --lock-for