projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cfd301
)
Use type from headerGet*(), not tagType() for now
author
Panu Matilainen
<pmatilai@redhat.com>
Wed, 18 Jul 2007 13:05:56 +0000
(16:05 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Wed, 18 Jul 2007 13:05:56 +0000
(16:05 +0300)
Blows up with header extensions...
python/header-py.c
patch
|
blob
|
history
diff --git
a/python/header-py.c
b/python/header-py.c
index
7c67181
..
e74077e
100644
(file)
--- a/
python/header-py.c
+++ b/
python/header-py.c
@@
-447,7
+447,10
@@
static PyObject * hdr_subscript(hdrObject * s, PyObject * item)
}
tagtype = tagType(tag);
+#if NOTYET
+ /* this blows up with header extension types */
type = tagtype & RPM_MASK_TYPE;
+#endif
forceArray = (tagtype & RPM_MASK_RETURN_TYPE) == RPM_ARRAY_RETURN_TYPE;
freeData = (tagtype & RPM_MASK_TYPE) == RPM_I18NSTRING_TYPE;