X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bin%2Fdebbugs-loadsql;fp=bin%2Fdebbugs-loadsql;h=7dd652783b15ef54d28302120f0a88aa2ab6498d;hb=4a79438a7f45264f948d87d0c7cb819886300439;hp=b718a05961c862565059a4c7d5c9e7efcd9ac924;hpb=d8c980060cda8346ef6d7a86e63fecc749f91537;p=debbugs.git diff --git a/bin/debbugs-loadsql b/bin/debbugs-loadsql index b718a05..7dd6527 100755 --- a/bin/debbugs-loadsql +++ b/bin/debbugs-loadsql @@ -439,12 +439,12 @@ sub add_maintainers { my ($options,$opts,$p,$config,$argv) = @_; my $s = db_connect($options); - my $maintainers = getsourcemaintainers(); + my $maintainers = getsourcemaintainers() // {}; $p->target(2) if $p; ## get all of the maintainers, and add the missing ones my $maints = $s->resultset('Maintainer')-> get_maintainers(values %{$maintainers}); - $p->update(); + $p->update() if $p; my @svs = $s->resultset('SrcVer')-> search({maintainer => undef },