From: Don Armstrong Date: Tue, 27 Feb 2018 22:51:05 +0000 (-0800) Subject: only update the progress bar if it exists X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=4a79438a7f45264f948d87d0c7cb819886300439 only update the progress bar if it exists handle non-existent Maintainers file --- 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 },