6 #include <zypp/base/Logger.h>
8 #include <zypp/ZYppFactory.h>
10 #include "zypp/Product.h"
11 #include "zypp/Package.h"
13 #include "zypp/TmpPath.h"
14 #include "zypp/ProgressData.h"
15 #include "zypp/parser/yum/RepoParser.h"
16 #include "zypp/repo/yum/Downloader.h"
18 #include "zypp/sat/Pool.h"
20 #include "zypp/PoolQuery.h"
24 using namespace zypp::repo;
26 bool result_cb( const ResObject::Ptr &r )
31 int main(int argc, char **argv)
35 ZYpp::Ptr z = getZYpp();
37 //z->initializeTarget("/");
38 //z->target()->load();
40 sat::Pool::instance().addRepoSolv("./foo.solv");
42 // for ( ResPool::const_iterator it = z->pool().begin(); it != z->pool().end(); ++it )
44 // ResObject::constPtr res = it->resolvable();
45 // if ( res->name() == "kde4-kcolorchooser")
47 // cout << res << endl;
48 // cout << res->summary() << " | " << res->size() << endl;
53 query.execute("kde", &result_cb);
57 catch ( const Exception &e )
60 cout << e.msg() << endl;