Re: Recursing on repos
pirla <[email protected]>
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Message-ID | <[email protected]> |
Il giorno mar, 03/02/2009 alle 19.41 -0500, James Antill ha scritto: > pirla <[email protected]> writes: > Here is how I'd probably do it: > > import yum, os, sys > yb = yum.YumBase() > yb.repos.setCacheDir(yum.misc.getCacheDir()) > > for repo in yb.repos.enableRepo('*'): > for pkg in yb.pkgSack.returnPackages(repoid=repo): > print pkg.name, pkg.ver, pkg.rel, pkg.arch, pkg.repo > yb.pkgSack.dropCachedData() > It also do not work. The error is the same: yum.Errors.RepoError: Cannot retrieve repository metadata (repomd.xml) for repository: kwizart-rawhide-debuginfo. Please verify its path and try again I checked for repo definition on [kwizart-rawhide-debuginfo] name=kwizart for Fedora Rawhide - $basearch - Debug baseurl=http://rpms.kwizart.net/fedora/rawhide/$basearch/debug/ failovermethod=priority enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-kwizart and the url is available, but empty. It's not so easy to use python and also API. Where can I find a **detailed** documentation on modules, classes and so on, about yum? -- Ciao Pirla Per rispondere in E-mail the (punto) pirla (chiocciola) gdit.it *** un bacio ai pupi *** ---> Linux user since yesterday <--- ---> Linux User #389536 <--- _______________________________________________ Yum mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/yum
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkmJlwEACgkQKwNtDFlgBVR+pACgs5AHPc+IdD9HfcCLeMz6EzxL Cc8Amwdq61MP8ZBZr27TmPjU1RjskqVy =ue4g -----END PGP SIGNATURE-----