return grep -f $_ && -r _ && -s _, @candidates;
}
-=item @keyrings = directory_keyrings ( $directory )
-
-Return list of keyrings present in package configuration and applicable to
-DIRECTORY, which is a directory name object beginning with the appropriate
-package.
-
-=cut
-
-sub directory_keyrings {
- my $directory = shift;
-
- my @keyrings = directory_configuration_files('pubring.gpg', $directory);
-
- ftp_syslog debug => "DEBUG: found keyring $_" for @keyrings;
-
- return @keyrings;
-}
-
=item @addresses = directory_email_addresses ( $directory )
Return list of email addresses configured to receive notification of
return @{$self->{auth_keyrings}} if $self->{auth_keyrings};
# Check that we have a keyring for this package:
- my @keyrings = ::directory_keyrings($self->target_directory);
+ my @keyrings = ::directory_configuration_files('pubring.gpg',
+ $self->target_directory);
+ ftp_syslog debug => "DEBUG: found keyring $_" for @keyrings;
unless (@keyrings) {
my $package = $self->target_directory->package_name;
throw package_configuration => package_name => $package,