浏览代码

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);