diff options
author | Tzafrir Cohen <tzafrir@cohens.org.il> | 2009-07-13 16:18:16 +0300 |
---|---|---|
committer | Tzafrir Cohen <tzafrir@cohens.org.il> | 2009-07-13 16:18:16 +0300 |
commit | 65e0af75a66894cf7f3d0d55ec231ab15696c895 (patch) | |
tree | bbedf4b138f559ced5123dd241167300adbd7eab /menuselect | |
parent | 1354f8e90290aa74a70a9fc71d9aea82488a028c (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-x | menuselect/menuselect | 5 |
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. |