Use type from headerGet*(), not tagType() for now
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 18 Jul 2007 13:05:56 +0000 (16:05 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 18 Jul 2007 13:05:56 +0000 (16:05 +0300)
Blows up with header extensions...

python/header-py.c

index 7c67181..e74077e 100644 (file)
@@ -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;