Mailinglist Archive: opensuse-buildservice (148 mails)

< Previous Next >
[opensuse-buildservice] [PATCH] Notification about unresolved state of packages
Hello,

I noticed that there is no notification sent about unresolved state of
packages in a project repository, so I did the attached small patch to
fix that.

The patch applies to the scheduler because AFAICS that was the place
where the error was caught, and no build job was triggered.

Please review, any comments welcome :)

--
Thanks,
Islam Amer
diff --git a/src/backend/bs_sched b/src/backend/bs_sched
index 8a7f38b..5cea8b7 100755
--- a/src/backend/bs_sched
+++ b/src/backend/bs_sched
@@ -48,6 +48,7 @@ use Build;
use BSDB;
use Meta;
use BSSolv;
+use BSNotify;

use strict;

@@ -4616,6 +4617,13 @@ while(1) {
print " $_\n" for @edeps;
$packstatus{$packid} = 'unresolvable';
$packerror{$packid} = join(', ', @edeps);
+ my $info = {
+ "project" => $projid,
+ "repository" => $repoid,
+ "package" => $packid,
+ "error" => @edeps
+ };
+ BSNotify::notify('PKG_UNRESOLVABLE', $info);
next;
}
delete $experrors{$packid};
< Previous Next >
This Thread
  • No further messages