use warnings;
use Getopt::Long;
use Carp;
+# Cannot yet pull in all of Lintian
+# unshift @INC, "/home/jeremiah/maemian/lib";
+# require Maemian::Output;
+# my $lintout = new Maemian::Output;
# --- Command line options
my $inputfile; # --- A file passed to maemian
my @lines = <$file>;
close $file;
+ my ($field, $maintainer) = map { split /: / } grep /Maintainer/, @lines;
+ chomp($maintainer);
+ if ($maintainer =~ /(ubuntu|debian)/i) {
+ print "W: Maintainer email addres ($maintainer) might be the same as upstream.\n";
+ }
+ else {
+ print "N: $maintainer\n";
+ }
if (grep /BEGIN PGP SIGNED MESSAGE/, @lines) {
- print "$filename is signed\n";
+ print "N: $filename is signed\n";
}
# print "\n$dirs\n$filename\n";
- } else {
+ }
+ else {
croak "File not readable: $!\n";
}
}