[repo-coord] Re: smart(dag) and atrpms-package-config(at)

Axel Thimm Axel.Thimm at atrpms.net
Tue Mar 15 19:51:42 CET 2005


On Tue, Mar 15, 2005 at 06:40:36PM +0100, Dag Wieers wrote:
> On Tue, 15 Mar 2005, Axel Thimm wrote:
> > Currently smart has three config parts, /etc/smart/channels, distro.py
> > and the state stored under /var. I'd prefer to have all configurable
> > parts in a /etc/smart hierarchy and also see enforcing of
> > /etc/smart/channels over the internal state (e.g. modifying
> > /etc/smart/channels should not require to remove the state under
> > /var).
> 
> Axel, I simplified my distro.py to:
> 
> 	pkgconf.setFlag("multi-version", "kernel")
> 	pkgconf.setFlag("multi-version", "kernel-smp")
> 
> Did you add/improve anything ? What does your version contain additionally ?

Cut and Paste:

if not sysconf.getReadOnly():
    if not sysconf.has("channels"):
        sysconf.set(("channels", "rpm-db"),
                    {"alias": "rpm-db",
                     "type": "rpm-sys",
                     "name": "RPM Database"})

    for type in ["", "doc", "smp" ]:
        if type:
            kernel = "kernel-%s" % type
        else:
            kernel = "kernel"
        pkgconf.setFlag("multi-version", kernel)

Makes sense to unroll the loop, as it's more readable :)
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/repo-coord/attachments/20050315/eafc9946/attachment.bin


More information about the repo-coord mailing list