# getbuglocation() directly first.
return undef if defined $location and
($location ne 'db' and $location ne 'db-h');
- # if there is no location, the bug doesn't exist
- return undef if not defined $location;
}
my $dir = getlocationpath($location);
return undef if not defined $dir;
$status = getbugcomponent($lref, 'summary', $location);
$log = getbugcomponent($lref, 'log' , $location);
return undef unless defined $status;
+ return undef if not -e $status;
}
else {
$status = $param{summary};
(1) x @{$config{affects_distribution_tags}};
my $some_distributions_disallowed = 0;
my %allowed_distributions;
- for my $tag (split ' ', ($status->{tags}||'')) {
+ for my $tag (split ' ', ($status{tags}||'')) {
if (exists $affects_distribution_tags{$tag}) {
$some_distributions_disallowed = 1;
$allowed_distributions{$tag} = 1;
# distribution for the purposees of
# finding versions
if ($some_distributions_disallowed and
- not exists $allowed_distributions{$tag}) {
+ not exists $allowed_distributions{$dist}) {
next;
}
push @versions, getversions($package, $dist, $arch);