Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111124393
D13036.id35047.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
867 B
Referenced Files
None
Subscribers
None
D13036.id35047.diff
View Options
Index: ports-mgmt/portlint/src/portlint.pl
===================================================================
--- ports-mgmt/portlint/src/portlint.pl
+++ ports-mgmt/portlint/src/portlint.pl
@@ -1650,6 +1650,21 @@
my %seen = ();
@popt = grep { !$seen{$_}++ } @popt;
}
+
+ foreach my $i (@popt) {
+ if ($i eq 'PORTDOCS') {
+ if (!grep(/^DOCS$/, @opt)) {
+ &perror("FATAL", $file, -1, "PORTDOCS appears in plist ".
+ "but DOCS is not listed in OPTIONS_DEFINE.");
+ }
+ } elsif ($i eq 'PORTEXAMPLES') {
+ if (!grep(/^EXAMPLES$/, @opt)) {
+ &perror("FATAL", $file, -1, "PORTEXAMPLES appears in plist ".
+ "but EXAMPLES is not listed in OPTIONS_DEFINE.");
+ }
+ }
+ }
+
foreach my $i ((@opt, @aopt)) {
# skip global options
next if ($i eq 'DOCS' or $i eq 'NLS' or $i eq 'EXAMPLES' or $i eq 'IPV6' or $i eq 'X11' or $i eq 'DEBUG');
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 28, 6:27 PM (15 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16889222
Default Alt Text
D13036.id35047.diff (867 B)
Attached To
Mode
D13036: ports-mgmt/portlint: Please require the option DOCS when %%PORTDOCS%% is used in plist
Attached
Detach File
Event Timeline
Log In to Comment