+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,
+};
+
+my @err_descriptions;
+$err_descriptions [ERR_ARCH_MISMATCH] = "Architecture mismatches";
+$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";
+$err_descriptions [ERR_CRASH] = "Crashes detected";
+$err_descriptions [ERR_BUILD_PROBLEM] = "Problems detected during build phase";
+$err_descriptions [ERR_TEST_PROBLEM] = "Problems detected during test phase";
+$err_descriptions [ERR_BUILD_TIMEOUT] = "Package builds timed out";
+