debug($directive_file_contents, '') if DEBUG;
}
+ # They have to specify a version
+ fatal("no version directive specified in $directive_file",1)
+ unless defined $op_header->{version};
+
# They have to specify a directory directive.
unless ($op_header->{directory}) {
# Send the warning to the upload-ftp script maintainer, and the person who
fatal("no directory directive specified in $directive_file",1);
}
+ # Configuration must exist for the package
+ -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 ($op_header->{package},$op_header->{directory});
+ fatal("no keyring for package $op_header->{package}",0) if ($#keyrings < 0);
+
# If there is a command in the directive that doesn't require an actual
# file to work on, we won't require the filename line in the directive
# file. This will allow people to upload a directive file only to
$filename_required = 0;
}
- # Configuration must exist for the package
- -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 ($op_header->{package},$op_header->{directory});
- fatal("no keyring for package $info{package}",0) if ($#keyrings < 0);
-
if ($filename_required) {
# Ben Pfaff <blp@cs.stanford.edu> wrote:
# First, "gpg -b" doesn't verify that the filename of the signed
if ($directive_file ne "$info{filename}{value}.directive.asc");
}
- # They have to specify a version
- fatal("no version directive specified in $directive_file",1)
- unless defined $op_header->{version};
-
my $retval = verify_keyring($directive_file,$directive_file_contents,
@keyrings);
found,foo.bin.directive.asc "found directive in triplet"
found-packet,foo.bin.directive.asc:foo.bin.sig:foo.bin \
"found triplet"
- validate,no-filename "directive file lacking version rejected"
+ validate,no-version "directive file lacking version rejected"
} email-to {
ftp-upload-script@gnu.org foo@example.gnu.org
ftp-upload-report@gnu.org foo@example.org foo@example.net
}
}
-# TODO: The above "validate,no-filename" should be "validate,no-version"
-# but the script currently does not check these in the proper order.
check_triplet "bogus: duplicated version key" setup {
packages {