Fix issue with requirements that had no locations array

The variable provided was ignored meaning that it would only work correctly if the executable was found via PATH, and if it wasn’t found, the error message would display a bogus character as the variable that the user should set.
This commit is contained in:
Allan Odgaard
2013-05-26 15:34:54 +08:00
parent 2568503056
commit 0594b2c83e

View File

@@ -43,7 +43,7 @@ namespace bundles
plist::get_key_path(info, "variable", variable);
if(plist::get_key_path(info, "locations", locations))
res.push_back(required_command_t(command, moreInfoURL, variable, convert_locations(locations)));
else res.push_back(required_command_t(command, moreInfoURL));
else res.push_back(required_command_t(command, moreInfoURL, variable));
}
}
}