Mailinglist Archive: zypp-devel (149 mails)
| < Previous | Next > |
Re: [zypp-devel] Comments/ideas for libzypp-bindings-python
- From: Michael Andres <ma@xxxxxxx>
- Date: Fri, 5 Sep 2008 14:41:16 +0200
- Message-id: <20080905124116.GA29452@xxxxxxx>
On Fri, Sep 05, Jano Kupec wrote:
No, someone disabled it in the bindings:
%ignore zypp::RepoManager::knownRepositories;
But i't convenient, so I'll add it if it works.
repoManager = zypp.RepoManager()
repos = repoManager.knownRepositories()
for repo in repos:
if not repo.enabled():
continue
if not repoManager.isCached( repo ):
repoManager.buildCache( repo )
repoManager.loadFromCache( repo );
--
cu,
Michael Andres
+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
Jan-Simon M?ler wrote:
Moin moin!
Just some observations/ideas and random stuff.
RepoManager:
* I miss iterators like knownRepos() and knownServices() returning the
respective RepoInfo
** Reason: I can easily add repositories, but its hard to find the already
known repos from RepoManager
to query/refresh/whatever
knownRepositories() should be there, but is deprecated anyway. Use
No, someone disabled it in the bindings:
%ignore zypp::RepoManager::knownRepositories;
But i't convenient, so I'll add it if it works.
repoManager = zypp.RepoManager()
repos = repoManager.knownRepositories()
for repo in repos:
if not repo.enabled():
continue
if not repoManager.isCached( repo ):
repoManager.buildCache( repo )
repoManager.loadFromCache( repo );
--
cu,
Michael Andres
+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |