Parcourir la source

Don't consider variable substitution when checking DEPENDS.

PR:	259244
Joe Clarke il y a 2 ans
Parent
commit
e4b692f97b
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      portlint.pl

+ 3 - 1
portlint.pl

@@ -1162,7 +1162,9 @@ sub check_depends_syntax {
 			if ($k eq '') {
 				next;
 			}
-			my @l = split(':', $k);
+			my $tmp_depends = $k;
+			$tmp_depends =~ s/\$\{[^}]+}//g;
+			my @l = split(':', $tmp_depends);
 
 			print "OK: checking dependency value for $j.\n"
 				if ($verbose);