7 #include <zypp/base/Logger.h>
9 #include <zypp/ZYppFactory.h>
11 #include "zypp/Product.h"
12 #include "zypp/detail/PackageImplIf.h"
13 #include "zypp/Package.h"
14 #include "zypp2/RepositoryFactory.h"
15 #include "zypp2/RepoInfo.h"
17 #include "zypp2/repo/cached/RepoImpl.h"
18 #include "zypp/data/ResolvableData.h"
20 #include "zypp2/RepoManager.h"
21 #include "zypp2/RepoInfo.h"
26 using namespace zypp::source;
29 int main(int argc, char **argv)
33 ZYpp::Ptr z = getZYpp();
35 Pathname dbpath = Pathname(getenv("PWD"));
38 RepoInfoList repos = manager.knownRepositories();
40 for ( RepoInfoList::const_iterator it = repos.begin(); it != repos.end(); ++it )
45 catch ( const Exception &e )
48 cout << e.msg() << endl;