Re: smart(dag) and atrpms-package-config(at)

Axel Thimm <[email protected]> Tue, 15 Mar 2005 19:51:42 +0100
Newsgroups gmane.linux.redhat.rpm.atrpms.repo-coordination
Message-ID <[email protected]>
--===============3493623991967093154==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh"
Content-Disposition: inline


--NzB8fVQJ5HfG6fxh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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).
>=20
> Axel, I simplified my distro.py to:
>=20
> 	pkgconf.setFlag("multi-version", "kernel")
> 	pkgconf.setFlag("multi-version", "kernel-smp")
>=20
> Did you add/improve anything ? What does your version contain additionall=
y ?

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 =3D "kernel-%s" % type
        else:
            kernel =3D "kernel"
        pkgconf.setFlag("multi-version", kernel)

Makes sense to unroll the loop, as it's more readable :)
--=20
Axel.Thimm at ATrpms.net

--NzB8fVQJ5HfG6fxh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCNy6+QBVS1GOamfERAhYSAJ4ytBUyGjqLzavXBd2jc8cLBA6rDgCfQA8N
REbkal53QJrBsnUOmUMtw9Q=
=IfPZ
-----END PGP SIGNATURE-----

--NzB8fVQJ5HfG6fxh--


--===============3493623991967093154==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
repo-coord mailing list
[email protected]
http://lists.atrpms.net/mailman/listinfo/repo-coord

--===============3493623991967093154==--