summaryrefslogtreecommitdiff
path: root/menuselect
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir@cohens.org.il>2009-07-13 16:18:16 +0300
committerTzafrir Cohen <tzafrir@cohens.org.il>2009-07-13 16:18:16 +0300
commit65e0af75a66894cf7f3d0d55ec231ab15696c895 (patch)
treebbedf4b138f559ced5123dd241167300adbd7eab /menuselect
parent1354f8e90290aa74a70a9fc71d9aea82488a028c (diff)
Make sure (XML) dependencies are upper-case
Make sure values read from XML files for 'use' or 'depend' are upper-case.
Diffstat (limited to 'menuselect')
-rwxr-xr-xmenuselect/menuselect5
1 files changed, 5 insertions, 0 deletions
diff --git a/menuselect/menuselect b/menuselect/menuselect
index 792bfd5..32ba175 100755
--- a/menuselect/menuselect
+++ b/menuselect/menuselect
@@ -220,6 +220,11 @@ sub parse_menuselect_xml_file($) {
if (! exists $member->{$key}) {
$member->{$key} = [];
}
+
+ # Make sure dependencies are upper-case.
+ # FIXME: this is not the proper place for such a fix
+ $val = uc($val) if ($key =~ /Depend|Use/);
+
# Using "unshift' rather than 'push'.
# For a singleton value this makes the action an
# override, as only the first value counts.