summaryrefslogtreecommitdiffstats
path: root/src/xmlpythonizer.c
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-06-15 18:39:49 +0200
committerDavid Sommerseth <davids@redhat.com>2009-06-15 18:39:49 +0200
commit655799b06376c503086e43a0225298d170e08dbf (patch)
tree011f0b886a2a82441951cc30d96a73f1cfc9f8e2 /src/xmlpythonizer.c
parente9a6b7f9ec31c1227be982fb8f2bb0ee8bf97710 (diff)
downloadpython-dmidecode-655799b06376c503086e43a0225298d170e08dbf.tar.gz
python-dmidecode-655799b06376c503086e43a0225298d170e08dbf.tar.xz
python-dmidecode-655799b06376c503086e43a0225298d170e08dbf.zip
Added new function: dmixml_FindNodeByAttr_NoCase(...)
This function will ignore the case of the string of the value to be found. This improves the behaviour mentioned in commit 20030e42b4d3f7283f6143641cb009a8dbf1da24. At the moment, the immediate advantage is that the pymap.xml is not strictly bound to if the type IDs in hex are in upper and/or lower case. Both cases and mixed cases will now work.
Diffstat (limited to 'src/xmlpythonizer.c')
-rw-r--r--src/xmlpythonizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpythonizer.c b/src/xmlpythonizer.c
index a9282e2..47590dd 100644
--- a/src/xmlpythonizer.c
+++ b/src/xmlpythonizer.c
@@ -458,7 +458,7 @@ ptzMAP *_dmimap_parse_mapping_node_typeid(xmlNode *mapnode, const char *typeid)
assert( mapnode != NULL);
// Find the <TypeMap> tag with our type ID
- node = dmixml_FindNodeByAttr(mapnode, "TypeMap", "id", typeid);
+ node = dmixml_FindNodeByAttr_NoCase(mapnode, "TypeMap", "id", typeid);
if( node == NULL ) {
// No exception handling possible here, as we don't return PyObject
fprintf(stderr,"** WARNING: Could not find any XML->Python "