Browse Source

Don't consider variable substitution when checking DEPENDS.

PR:	259244
Joe Clarke 2 years ago
parent
commit
e4b692f97b
1 changed files with 3 additions and 1 deletions
  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);