Re: Python API: TRIGGERTYPE unsupported type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 19, 2004 at 04:54:58PM +0000, Paul Nasrat wrote:
> On Fri, Mar 19, 2004 at 11:46:02AM -0500, Jeff Johnson wrote:
> > On Thu, Mar 18, 2004 at 03:15:58PM -0500, Bob Drzyzgula wrote:
> 
> > > I'm developing on an RHEL 3.0 WS system fully up to
> > > date with RHN, rpm 4.2.1 rel 4.4. But I have verified
> > > it on a second RHEL 3.0 WS system, as well as on an RH
> > > 9 system running rpm 4.2 rel 0.69, so I don't think it's
> > > a corrupted database. If, on my main RHEL system, I trap
> > > that TypeError and loop through all tags in all headers,
> > > I find that it occurs in 197 headers, and only ever on
> > > the TRIGGERTYPE tag.
> 
> > There is no TRIGGERTYPE tag in rpm. See rpm --querytags
> > for the names of tags that might reasonably be queried.
> 
> Hmm rpm --querytags | grep TRIGGER shows one here
> > 
> > > 
> > > Any guesses what's going on?  Is this a known issue?
> > > 
> > 
> > Rather, an "unknown" issue ;-)
> 
> Seems to be a HEADER_EXT_TAG in formats.c but not in rpmlib.h
> 
> I can do 
> 
> mi=ts.dbMatch("name","mozilla")
> h=mi.next()
> print h['triggertype']
> ['postun']
> 
> Seems to work if the package has a trigger.

Hehe, see, even I can't remember header extensions ;-)

Thanks for the correction, I looked at rpmlib.h, not --querytags.

If there *is* a trigger type extension, it's used in exactly one place,
rpm -q --scripts display output from /usr/lib/rpm/rpmpopt*.

That means that h.sprintf() (think: same as --queryformat arg but in python)
rather than h['xxx'] might have to be used top retrieve the value instead.

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@xxxxxxxxxx (jbj@xxxxxxx)
Chapel Hill, NC


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux