Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kanku for openSUSE:Factory checked 
in at 2022-06-24 08:45:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kanku (Old)
 and      /work/SRC/openSUSE:Factory/.kanku.new.1548 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kanku"

Fri Jun 24 08:45:53 2022 rev:14 rq:984748 version:0.12.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/kanku/kanku.changes      2022-06-23 
10:24:57.671785028 +0200
+++ /work/SRC/openSUSE:Factory/.kanku.new.1548/kanku.changes    2022-06-24 
08:45:57.659182892 +0200
@@ -1,0 +2,7 @@
+Thu Jun 23 16:55:29 UTC 2022 - fschrei...@suse.com
+
+- Update to version 0.12.7:
+  * [handler] fixing users
+  * [cli] up: fixed __ALL__
+
+-------------------------------------------------------------------

Old:
----
  kanku-0.12.6.tar.xz

New:
----
  kanku-0.12.7.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kanku.spec ++++++
--- /var/tmp/diff_new_pack.COrrBh/_old  2022-06-24 08:45:58.275183582 +0200
+++ /var/tmp/diff_new_pack.COrrBh/_new  2022-06-24 08:45:58.279183586 +0200
@@ -22,7 +22,7 @@
 
 Name:           kanku
 # Version gets set by obs-service-tar_scm
-Version:        0.12.6
+Version:        0.12.7
 Release:        0
 License:        GPL-3.0-only
 Summary:        Development and continuous integration


++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.COrrBh/_old  2022-06-24 08:45:58.339183654 +0200
+++ /var/tmp/diff_new_pack.COrrBh/_new  2022-06-24 08:45:58.343183658 +0200
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param name="url">https://github.com/M0ses/kanku.git</param>
-              <param 
name="changesrevision">aa10ff86f4b3b2d24c6fcaec7ae04b076d7a3140</param></service></servicedata>
+              <param 
name="changesrevision">fcf4fb2700c14072942d14ddb54c48fe0814a0b8</param></service></servicedata>
 (No newline at EOF)
 

++++++ debian.changelog ++++++
--- /var/tmp/diff_new_pack.COrrBh/_old  2022-06-24 08:45:58.363183680 +0200
+++ /var/tmp/diff_new_pack.COrrBh/_new  2022-06-24 08:45:58.367183685 +0200
@@ -1,4 +1,4 @@
-kanku (0.12.6-0) UNRELEASED; urgency=medium
+kanku (0.12.7-0) UNRELEASED; urgency=medium
 
   * updated to upstream version 0.10.1
 

++++++ debian.dsc ++++++
--- /var/tmp/diff_new_pack.COrrBh/_old  2022-06-24 08:45:58.427183752 +0200
+++ /var/tmp/diff_new_pack.COrrBh/_new  2022-06-24 08:45:58.427183752 +0200
@@ -2,7 +2,7 @@
 Source: kanku
 Binary: kanku
 Architecture: any
-Version: 0.12.6
+Version: 0.12.7
 Maintainer: Frank Schreiner <fschrei...@suse.de>
 Standards-Version: 3.8.2
 Homepage: https://github.com/M0ses/kanku

++++++ kanku-0.12.6.tar.xz -> kanku-0.12.7.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kanku-0.12.6/lib/Kanku/Cli/up.pm 
new/kanku-0.12.7/lib/Kanku/Cli/up.pm
--- old/kanku-0.12.6/lib/Kanku/Cli/up.pm        2022-06-22 10:09:52.000000000 
+0200
+++ new/kanku-0.12.7/lib/Kanku/Cli/up.pm        2022-06-23 18:51:02.000000000 
+0200
@@ -93,12 +93,12 @@
   my $cfg     = $self->cfg;
 
   my $schema  = $self->schema;
-
   croak("Could not connect to database\n") if ! $schema;
 
+  Kanku::Config->initialize();
+
   $logger->debug(__PACKAGE__ . '->execute()');
 
-  $self->job_name([$cfg->config->{default_job}]) if ! $self->job_name;
   my $dn = $self->domain_name;
   my $vm      = Kanku::Util::VM->new(
     domain_name => $dn,
@@ -115,21 +115,25 @@
   }
 
   $logger->debug('offline mode: ' . ($self->offline   || 0));
-  $logger->debug('job_name: '     . ($self->job_name  || q{}));
-
-  my $job_config = $cfg->job_config($self->job_name);
 
-  croak("No such job found\n") if ! $job_config;
   my $jobs = [];
-  if ($self->job_name eq '__ALL__' && ref($cfg->config->{jobs}->{__ALL__}) eq 
'ARRAY') {
+
+  if ($self->job_name && ($self->job_name->[1]||q{}) eq '__ALL__' && 
ref($cfg->config->{jobs}->{__ALL__}) eq 'ARRAY') {
     $jobs = $cfg->config->{jobs}->{__ALL__};
   } elsif (ref($self->job_name) eq 'ARRAY') {
-    $jobs = $self->job_name;
+    for (my $i=0; $i <= @{$self->job_name}; $i++) {
+      push @$jobs, $self->job_name->[$i+1] if $self->job_name->[$i+1];
+      $i++;
+    }
   } else {
-    $jobs->[0] = $self->job_name;
+    $jobs->[0] = $cfg->config->{default_job} if ! $self->job_name;
   }
+
+  for my $jname (@$jobs) {
+    croak("Error in config for job '$jname'") unless 
ref($cfg->config->{jobs}->{$jname}) eq 'ARRAY';
+  }
+
   for my $jname (@$jobs) {
-    next if ($jname == 1);
     my $ds = $schema->resultset('JobHistory')->create({
        name          => $jname,
        creation_time => time,
@@ -158,7 +162,6 @@
          },
     );
     @ARGV=(); ## no critic (Variables::RequireLocalizedPunctuationVars)
-    Kanku::Config->initialize();
     if ($self->pool) {
       
Kanku::Config->instance->cf->{'Kanku::Handler::CreateDomain'}->{pool_name} = 
$self->pool;
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kanku-0.12.6/lib/Kanku/Handler/GIT.pm 
new/kanku-0.12.7/lib/Kanku/Handler/GIT.pm
--- old/kanku-0.12.6/lib/Kanku/Handler/GIT.pm   2022-06-22 10:09:52.000000000 
+0200
+++ new/kanku-0.12.7/lib/Kanku/Handler/GIT.pm   2022-06-23 18:51:02.000000000 
+0200
@@ -108,9 +108,9 @@
   if ($giturl =~ m#^(https?)\://(.*)#) {
     my $proto   = "$1://";
     my $gitpass = '';
-    my $gituser = $self->gituser;
+    my $gituser = $self->gituser || q{};
     my $url     = $2;
-    $gituser .= ':'.$self->gitpass if ($self->gitpass);
+    $gituser .= ':'.$self->gitpass if ($gituser && $self->gitpass);
     $gituser .= '@' if ($gituser);
     return "$proto$gituser$url";
   }

Reply via email to