diff options
author | Matt Wilson <msw@redhat.com> | 2000-03-04 16:31:47 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-03-04 16:31:47 +0000 |
commit | 1483501218014110beddc3df2109cc24ea0f2385 (patch) | |
tree | a75687dabe54d788589fe93a5c865df40b36303f /rpmmodule/rpmmodule.c | |
parent | 2afe333b2677eb63261d771358e9b948a44d005e (diff) | |
download | anaconda-1483501218014110beddc3df2109cc24ea0f2385.tar.gz anaconda-1483501218014110beddc3df2109cc24ea0f2385.tar.xz anaconda-1483501218014110beddc3df2109cc24ea0f2385.zip |
revert
Diffstat (limited to 'rpmmodule/rpmmodule.c')
-rw-r--r-- | rpmmodule/rpmmodule.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/rpmmodule/rpmmodule.c b/rpmmodule/rpmmodule.c index 3e943d768..1d79f219f 100644 --- a/rpmmodule/rpmmodule.c +++ b/rpmmodule/rpmmodule.c @@ -927,11 +927,8 @@ static PyObject * hdrSubscript(hdrObject * s, PyObject * item) { tag = PyInt_AsLong(item); } else if (PyString_Check(item)) { str = PyString_AsString(item); - printf ("CHECK %d\n", strcasecmp("VERSION", "version")); - for (i = 0; i < rpmTagTableSize; i++) { - printf ("get header %s <-> %s\n", rpmTagTable[i].name + 7, str); + for (i = 0; i < rpmTagTableSize; i++) if (!strcasecmp(rpmTagTable[i].name + 7, str)) break; - } if (i < rpmTagTableSize) tag = rpmTagTable[i].val; if (tag == -1) { /* if we still don't have the tag, go looking for the header |