On Fri, Sep 05, Jano Kupec wrote:
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@novell.com 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@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org