diff options
author | rillig <rillig> | 2006-05-01 22:01:21 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-05-01 22:01:21 +0000 |
commit | 52f015d8d758e88ce7c3e45cb44b57ee90b436c7 (patch) | |
tree | 5cae18b0663ec6ea037a3893b236af74059ebb44 /pkgtools | |
parent | 8b362088fb16a628ddb0a0be25a9b4bce6271e59 (diff) | |
download | pkgsrc-52f015d8d758e88ce7c3e45cb44b57ee90b436c7.tar.gz |
It is an error if a RESTRICTED package does not have a LICENSE.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index dd884d5746d..ea957cb0c1e 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: pkglint.pl,v 1.570 2006/05/01 20:19:04 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.571 2006/05/01 22:01:21 rillig Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -4472,6 +4472,10 @@ sub checkfile_package_Makefile($$$) { $makevar->{"NO_CONFIGURE"}->log_warning("... NO_CONFIGURE is set."); } + if (exists($makevar->{"RESTRICTED"}) && !exists($makevar->{"LICENSE"})) { + $makevar->{"RESTRICTED"}->log_error("Restricted packages must have a LICENSE."); + } + my $distname_line = $makevar->{"DISTNAME"}; my $pkgname_line = $makevar->{"PKGNAME"}; |