[Rpm-maint] arbitrary tag definition and use from the python interface
Peter Bowen
pzb at novell.com
Fri Jul 13 17:35:19 UTC 2007
On Fri, 2007-07-13 at 13:22 -0400, seth vidal wrote:
> I was wondering how possible/doable it would be to support arbitrary tag
> definition w/i an rpm.
>
> so in the specfile I could do (for example)
>
> TagDef: mytag
> mytag: foovalue
>
> Then that would get thrown into the rpm when built and when I open up
> the header in rpm-python maybe I could do:
>
> hdr.mytag
> >>> 'foovalue'
>
> How reasonable is that to consider for later versions of rpm?
Maybe
TagDef: MyTag 20003
MyTag: foovalue
would work on the build end. I'm not sure about the reading end. Maybe
tag definitions could go in rpmrc? (I don't think macros are right for
tag definitions)
Thanks.
Peter
More information about the Rpm-maint
mailing list