summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-09-20 15:09:52 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-09-20 15:09:52 +0300
commit3b8da4ed118c6da6dab1cb7c0ecd0933c6d14f14 (patch)
treef1e29034af384acc2a63ab7cd5e7fcf423c6d6a5 /python
parentbbf7574d7f368e8d11600b54dfd24a0dafd555fb (diff)
downloadrpm-3b8da4ed118c6da6dab1cb7c0ecd0933c6d14f14.tar.gz
rpm-3b8da4ed118c6da6dab1cb7c0ecd0933c6d14f14.tar.bz2
rpm-3b8da4ed118c6da6dab1cb7c0ecd0933c6d14f14.zip
Rename tagName/Value/Type() to rpmTagGet*()
- namespacing - avoid collisions with tagtype definitions
Diffstat (limited to 'python')
-rw-r--r--python/header-py.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/header-py.c b/python/header-py.c
index 4e2b83070..feccf180c 100644
--- a/python/header-py.c
+++ b/python/header-py.c
@@ -357,7 +357,7 @@ long tagNumFromPyObject (PyObject *item)
return PyInt_AsLong(item);
} else if (PyString_Check(item)) {
str = PyString_AsString(item);
- return tagValue(str);
+ return rpmTagGetValue(str);
}
return -1;
}
@@ -401,7 +401,7 @@ static int dressedHeaderGetEntry(Header h, int_32 tag, int_32 *type,
const char * errstr;
fmt[0] = '\0';
- (void) stpcpy( stpcpy( stpcpy( fmt, "%{"), tagName(tag)), "}\n");
+ (void) stpcpy( stpcpy( stpcpy( fmt, "%{"), rpmTagGetName(tag)), "}\n");
/* XXX FIXME: memory leak. */
msgstr = headerSprintf(h, fmt, rpmTagTable, rpmHeaderFormats, &errstr);
@@ -480,7 +480,7 @@ static PyObject * hdr_subscript(hdrObject * s, PyObject * item)
}
}
- tagtype = tagType(tag);
+ tagtype = rpmTagGetType(tag);
#if NOTYET
/* this blows up with header extension types */
type = tagtype & RPM_MASK_TYPE;