[Midnightbsd-cvs] mports [23730] trunk/ports-mgmt/portlint/src/portlint.pl: fix a few bugs

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Aug 17 18:30:55 EDT 2018


Revision: 23730
          http://svnweb.midnightbsd.org/mports/?rev=23730
Author:   laffer1
Date:     2018-08-17 18:30:54 -0400 (Fri, 17 Aug 2018)
Log Message:
-----------
fix a few bugs

Modified Paths:
--------------
    trunk/ports-mgmt/portlint/src/portlint.pl

Modified: trunk/ports-mgmt/portlint/src/portlint.pl
===================================================================
--- trunk/ports-mgmt/portlint/src/portlint.pl	2018-08-17 22:29:31 UTC (rev 23729)
+++ trunk/ports-mgmt/portlint/src/portlint.pl	2018-08-17 22:30:54 UTC (rev 23730)
@@ -2235,16 +2235,16 @@
 	#
 	# whole file: check for misuse of STAGE with SITE_PERL and SITE_ARCH
 	#
-	if ($j =~ m'\${FAKE_DESTDIR}\${SITE_PERL}') {
+	if ($j =~ m'\$\{FAKE_DESTDIR\}\${SITE_PERL}') {
 		my $lineno = &linenumber($`);
 		&perror("WARN", $file, $lineno, "\${FAKE_DESTDIR}\${SITE_PERL} should be ".
 			"replaced by \${FAKE_DESTDIR}\${PREFIX}/\${SITE_PERL_REL}.");
 	}
 
-	if ($j =~ m'\$\{STAGEDIR}\$\{SITE_ARCH}') {
+	if ($j =~ m'\$\{FAKE_DESTDIR}\$\{SITE_ARCH}') {
 		my $lineno = &linenumber($`);
-		&perror("WARN", $file, $lineno, "\${STAGEDIR}\${SITE_ARCH} should be ".
-			"replaced by \${STAGEDIR}\${PREFIX}/\${SITE_ARCH_REL}.");
+		&perror("WARN", $file, $lineno, "\${FAKE_DESTDIR}\${SITE_ARCH} should be ".
+			"replaced by \${FAKE_DESTDIR}\${PREFIX}/\${SITE_ARCH_REL}.");
 	}
 
 	#



More information about the Midnightbsd-cvs mailing list