From 4a79438a7f45264f948d87d0c7cb819886300439 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 27 Feb 2018 14:51:05 -0800 Subject: [PATCH] only update the progress bar if it exists handle non-existent Maintainers file --- bin/debbugs-loadsql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }, -- 2.39.2