--- /dev/null
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+use lib './lib';
+
+use File::Basename;
+use Getopt::Long;
+use Packages::Release;
+
+my %opts;
+GetOptions(\%opts, 'verbose', 'ignoremissing', 'dieoncheckerror',
+ 'keyring=s', 'directory=s')
+ or die "GetOptions failed\n";
+
+my @files = @ARGV;
+
+unless (@files) {
+ die "no release files specified\n";
+}
+
+foreach my $file (@files) {
+
+ $opts{file} = $file;
+ $opts{base} ||= dirname($file);
+ my $release = Packages::Release->new(\%opts);
+ $release->check;
+}
$self->config(%$config) if $config;
return unless $self->{config}{file};
+ $self->_v("checking Release file $self->{config}{file}\n");
my $sigfile = "$self->{config}{file}.gpg";
if ($self->{config}{keyring}) {
- $self->_v("checking signature\n");
+ $self->_v("\tchecking signature\n");
die "$self->{config}{keyring} not readable\n"
unless -r $self->{config}{keyring};