1 #include <zypp/base/Logger.h>
3 #include <zypp/ZYppFactory.h>
5 #include "zypp/Product.h"
6 #include "zypp/Package.h"
8 #include "zypp/SourceFactory.h"
9 #include "testsuite/src/utils/TestUtils.h"
11 using namespace zypp::detail;
15 using namespace zypp::source;
16 //using namespace DbXml;
18 #define TestKind Selection
24 ZYpp::Ptr z = getZYpp();
25 //z->initializeTarget("/");
27 //SourceManager_Ptr manager = SourceManager::sourceManager();
29 Source_Ref source = SourceFactory().createFrom( Url("dir:/space/rpms/duncan/vim/i386"), "/", "bleh", Pathname() );
30 ResStore store = source.resolvables();
31 //zypp::testsuite::utils::dump(store, true, true);
33 for (ResStore::const_iterator it = store.begin(); it != store.end(); ++it)
35 zypp::Package::Ptr res = asKind<zypp::Package>( *it );
36 MIL << res->name() << " " << res->edition() << " " << res->location() << std::endl;
40 catch ( const Exception &e )
42 MIL << "Sorry, bye" << endl;