On Friday 10 October 2014 08:56:41 Lukas Ocilka wrote: > Yast "didn't" know it was possible so it doesn't support more repos in > one config file, I'm afraid. > > Reading the files during upgrade is the only use case Yast needs to do. > In all other cases, we can use libzypp.
Why can't you use libzypp here? Can't e.g yast-pkgbindings offer something like: ============================== #include <iostream> #include <zypp/RepoManager.h> int main( int argc, const char * argv[] ) { --argc, ++argv; using namespace zypp; Pathname root( argc ? argv[0] : "/" ); RepoManager repoManager(( RepoManagerOptions(root) )); for_( it, repoManager.repoBegin(), repoManager.repoEnd() ) std::cout << *it << std::endl; return 0; } ============================== -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, m...@suse.de GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscr...@opensuse.org To contact the owner, e-mail: zypp-devel+ow...@opensuse.org