zypper port starts. zypp2 to zypp
[platform/upstream/libzypp.git] / devel / devel.dmacvicar / CachedSource_tp.cc
1 #include <sys/time.h>
2
3 #include <iostream>
4 #include <fstream>
5
6 #include <zypp/base/Logger.h>
7 #include <zypp/ZYpp.h>
8 #include <zypp/ZYppFactory.h>
9
10 #include "zypp/Product.h"
11 #include "zypp/detail/PackageImplIf.h"
12 #include "zypp/Package.h"
13 #include "zypp/RepositoryFactory.h"
14 #include "zypp/repo/cached/RepoImpl.h"
15 #include "zypp/data/ResolvableData.h"
16
17 using namespace std;
18 using namespace zypp;
19 using namespace zypp::repo;
20 using namespace zypp::repo::cached;
21
22
23 int main(int argc, char **argv)
24 {
25     try
26     {
27       ZYpp::Ptr z = getZYpp();
28     
29       Pathname dbpath = Pathname(getenv("PWD"));
30       
31       //RepositoryImpl_Ptr repositoryImpl(new CachedRepositoryImpl(dbpath));
32       //RepositoryFactory factory;
33       //Repository_Ref repository = factory.createFrom(repositoryImpl);
34       //ResStore dbres = repository.resolvables();
35       
36       //MIL << dbres.size() << " resolvables" << endl;
37
38     }
39     catch ( const Exception &e )
40     {
41       ZYPP_CAUGHT(e);
42       cout << e.msg() << endl;
43     }
44     
45     return 0;
46 }
47
48
49