#include "zypp/Product.h"
#include "zypp/detail/PackageImplIf.h"
#include "zypp/Package.h"
-
-#include "zypp2/source/cached/CachedSourceImpl.h"
+#include "zypp/RepositoryFactory.h"
+#include "zypp/repo/cached/RepoImpl.h"
#include "zypp/data/ResolvableData.h"
using namespace std;
using namespace zypp;
-using namespace zypp::source;
-using namespace zypp::source::cached;
+using namespace zypp::repo;
+using namespace zypp::repo::cached;
int main(int argc, char **argv)
{
ZYpp::Ptr z = getZYpp();
- Pathname dbpath = Pathname(getenv("PWD"));
-
- CachedSourceImpl source(dbpath);
- //ResStore dbres = src.resolvables();
+ z->initializeTarget("/");
+ ResStore res = z->target()->resolvables();
+ MIL << res.size() << " resolvables" << endl;
}
catch ( const Exception &e )