Browse Source

warn about non-free/contrib in tasks

keep-around/43e990ab3f4cc50982f8dbc32e3465ca7c827876
Joey Hess 22 years ago
parent
commit
43723b674e
  1. 7
      makedesc.pl
  2. 2
      tasks/unix-server

7
makedesc.pl

@ -25,6 +25,7 @@ my $dir=shift or die "no directory specified\n";
my $file=shift or die "no file specified\n";
my %package;
my %notmain;
my $dolint=1;
{
local $/="\n\n";
@ -35,6 +36,9 @@ my $dolint=1;
while (<AVAIL>) {
my ($package)=/Package:\s*(.*?)\n/;
$package{$package}=1;
if (/Section:\s*(contrib|non-free)/) {
$notmain{$package}=$1;
}
}
close AVAIL;
}
@ -74,6 +78,9 @@ sub processfile {
if (! $package{$_}) {
print STDERR "$file: $_ is not a valid package.\n";
}
if ($notmain{$_}) {
print STDERR "$file: $_ is in $notmain{$_}.\n";
}
}
}

2
tasks/unix-server

@ -28,7 +28,7 @@ Packages:
mtr
man-db
manpages
emacs20 # nvi is in base
emacs20 # nvi is in base Hmm, would emacs21 be better?
nethack # may be stretching the point
bsdgames # fits description perfectly
# could add a few other console games, esp. multiuser ones

Loading…
Cancel
Save