[Rpm-maint] rpm feature request

seth vidal skvidal at linux.duke.edu
Wed Aug 1 02:39:56 UTC 2007


On Tue, 2007-07-31 at 09:47 +0300, Panu Matilainen wrote:

> There are a number of other places as well where bitfield is used:
> tsflags, vsflags, verifyflags (once the verification api gets done) etc, 
> if something is to be done about them I think it should be a generic 
> bitfield wrapper object that supports nicer set/get methods than the raw 
> bitfield. The above would instead become something like

Alternatively just get rid of the bitfields all together. :)

> ts = rpm.ts()
> ts.vsflags.set(rpm.RPMVSF_NOHDRCHK, True)
> flag = ts.vsflags.get(<item>) # return boolean
> 
> Of course those flags are negative so .. maybe it'd want some extra 
> wrapping to turn it into something like
> ts.vsflags.set('gpgcheck', True)

yes, I'd be perfectly happy with that, though:
ts.vsflags.gpgcheck = True

looks so much nicer :)


thanks,
-sv





More information about the Rpm-maint mailing list