Add match for missing source package
authorSteve McIntyre <steve@einval.com>
Mon, 29 Oct 2018 23:11:26 +0000 (23:11 +0000)
committerSteve McIntyre <steve@einval.com>
Mon, 29 Oct 2018 23:11:26 +0000 (23:11 +0000)
bin/analyze_results

index 6f6a6b5..8bdb81e 100755 (executable)
@@ -26,17 +26,19 @@ my $existing_bugs = 0;
 
 use constant {
     ERR_ARCH_MISMATCH      => 1,
-    ERR_INFRA              => 2,
-    ERR_BD_PROBLEM         => 3,
-    ERR_DETECT_WRONG_ARCH  => 4,
-    ERR_CRASH              => 5,
-    ERR_BUILD_PROBLEM      => 6,
-    ERR_TEST_PROBLEM       => 7,
-    ERR_BUILD_TIMEOUT      => 8,
+    ERR_NO_SOURCE          => 2,
+    ERR_INFRA              => 3,
+    ERR_BD_PROBLEM         => 4,
+    ERR_DETECT_WRONG_ARCH  => 5,
+    ERR_CRASH              => 6,
+    ERR_BUILD_PROBLEM      => 7,
+    ERR_TEST_PROBLEM       => 8,
+    ERR_BUILD_TIMEOUT      => 9,
 };
 
 my @err_descriptions;
 $err_descriptions [ERR_ARCH_MISMATCH]     = "Architecture mismatches";
+$err_descriptions [ERR_NO_SOURCE]         = "No source found";
 $err_descriptions [ERR_INFRA]             = "Infrastructure errors";
 $err_descriptions [ERR_BD_PROBLEM]        = "Problems with build-deps";
 $err_descriptions [ERR_DETECT_WRONG_ARCH] = "Builds detected wrong architecture";
@@ -74,6 +76,13 @@ my @logcheck = (
        type     => ERR_ARCH_MISMATCH,
     },
     {
+       string   => 'E: Can not find version \S+ of package',
+       message  => 'Could not find specified source package',
+       check    => 1,
+       stop     => 1,
+       type     => ERR_NO_SOURCE,
+    },
+    {
        string   => 'schroot.*File is not owned by user root',
        message  => 'Schroot setup failure',
        check    => 1,