push(@{$info{email}},$1)
if ($tmp_retval =~ /Good signature from .*?<(.*?)>/);
- my @ops = interpret_directive($directive, $directive_file_contents);
+ my $ops = interpret_directive($directive, $directive_file_contents);
+ my $op_header = $ops->[0][1];
if (exists($info{"replace"}) && ($info{"version"} eq '1.1')) {
fatal("invalid directive 'replace', not supported prior to version 1.2",
# Phone home. E-mail the contents of the directive file to the maintainer,
# for debugging purposes. After this point, we don't need to pass the
# $directive_file_contents to any subsequent fatal calls.
- if (defined $info{'package'}) {
- debug($directive_file_contents, $info{'package'}) if DEBUG;
+ if (defined $op_header->{package}) {
+ debug($directive_file_contents, $op_header->{package}) if DEBUG;
} else {
debug($directive_file_contents, '') if DEBUG;
}
# They have to specify a directory directive.
- if (!$info{"directory"}) {
+ unless ($op_header->{directory}) {
# Send the warning to the upload-ftp script maintainer, and the person who
# signed the file, if we were able to extract that from the signature on
# the directive file.
}
# Configuration must exist for the package
- -d $package_config_base . '/' . $info{"package"}
- or fatal("no configuration directory for package $info{package}",0);
+ -d $package_config_base . '/' . $op_header->{package}
+ or fatal("no configuration directory for package $op_header->{package}",0);
# Check that we have a keyring for this package:
- my @keyrings = keyring_file ($info{package},$info{directory});
+ my @keyrings = keyring_file ($op_header->{package},$op_header->{directory});
fatal("no keyring for package $info{package}",0) if ($#keyrings < 0);
if ($filename_required) {
# They have to specify a version
fatal("no version directive specified in $directive_file",1)
- if ! $info{"version"};
+ unless defined $op_header->{version};
my $retval = verify_keyring($directive_file,$directive_file_contents,
@keyrings);