Преглед изворни кода

Don't consider variable substitution when checking DEPENDS.

PR:	259244
Joe Clarke пре 2 година
родитељ
комит
e4b692f97b
1 измењених фајлова са 3 додато и 1 уклоњено
  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);