Skip to content

Commit

Permalink
MOVEDlint: ignore make.conf
Browse files Browse the repository at this point in the history
Ignoring make.conf when looking up for existing flavors, makes the
test less likely to be polluted by end user defaults, like default
version of python etc.
  • Loading branch information
bapt committed Aug 24, 2022
1 parent ff97234 commit 97d54c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/scripts/MOVEDlint.awk
Expand Up @@ -123,7 +123,7 @@ $2 ~ /[ \t]/ {
delete missing[$1]
} else {
if (from_flavor != "") {
if (!system("test \"" from_flavor "\" = \"`make -C " portsdir "/" $1 " -VFLAVORS:M" from_flavor "`\"")) {
if (!system("test \"" from_flavor "\" = \"`make -C " portsdir "/" $1 " -VFLAVORS:M" from_flavor " __MAKE_CONF=/dev/null`\"")) {
printf "%5d: %s still has the %s flavor\n", NR, $1, from_flavor | sort
}
# No else because the port is there but does not have the flavor,
Expand All @@ -149,7 +149,7 @@ $2 ~ /[ \t]/ {
missing[$2] = NR
else
if (to_flavor != "") {
if (system("test \"" to_flavor "\" = \"`make -C " portsdir "/" $2 " -VFLAVORS:M" to_flavor "`\"")) {
if (system("test \"" to_flavor "\" = \"`make -C " portsdir "/" $2 " -VFLAVORS:M" to_flavor " __MAKE_CONF=/dev/null`\"")) {
printf "%5d: %s does not have the %s flavor\n", NR, $2, to_flavor | sort
error[NR] = 1
}
Expand Down

0 comments on commit 97d54c0

Please sign in to comment.