On Fri, Mar 19, 2004 at 11:46:02AM -0500, Jeff Johnson wrote: > > There is no TRIGGERTYPE tag in rpm. See rpm --querytags > for the names of tags that might reasonably be queried. > > > > > Any guesses what's going on? Is this a known issue? > > > > Rather, an "unknown" issue ;-) > > 73 de Jeff Hmmm. On my RHEL 3.0 System, $ rpm --querytags | grep -i trigger TRIGGERSCRIPTS TRIGGERNAME TRIGGERVERSION TRIGGERFLAGS TRIGGERINDEX TRIGGERSCRIPTPROG TRIGGERCONDS TRIGGERTYPE I just verified that TRIGGERTYPE is also included in this list on systems I have access to running Fedora Core 1, Redhat 9, and SuSE 7.3. Also, try this script: #!/usr/bin/python import rpm,sys tn = rpm.tagnames ts = rpm.TransactionSet() mi = ts.dbMatch('name', 'termcap') h = mi.next() for tagname in ['FOOBAR', 'PREUNPROG', 'VENDOR', 'TRIGGERTYPE']: if tagname in tn.values(): print "%s is a tagname" % tagname for key in tn.keys(): if tn[key] == tagname: print "%s key is %d" % (tagname,key) ttkey = key break else: print "%s is not a tagname" % tagname continue if ttkey in h.keys(): print "keys include %s's" % tagname else: print "keys do not include %s's" % tagname continue print "tn[ttkey] is %s" % tn[ttkey] print "h[tn[ttykey]] is %s" % h[tn[ttkey]] On my RHEL 3.0 system, I get: FOOBAR is not a tagname PREUNPROG is a tagname PREUNPROG key is 1087 keys do not include PREUNPROG's VENDOR is a tagname VENDOR key is 1011 keys include VENDOR's tn[ttkey] is VENDOR h[tn[ttykey]] is Red Hat, Inc. TRIGGERTYPE is a tagname TRIGGERTYPE key is 1146 keys include TRIGGERTYPE's tn[ttkey] is TRIGGERTYPE Traceback (most recent call last): File "./test2.py", line 24, in ? print "h[tn[ttykey]] is %s" % h[tn[ttkey]] TypeError: unsupported type in header Honestly, the termcap RPM -- as well as almost two hundred other RPMs on my RHEL 3.0 system -- all think that they have a TRIGGERTYPE tag, but the lookup logic barfs on it. --Bob _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list