From 9a4a0ed3c6f24c2e538415f092d46c968547b123 Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Fri, 20 Apr 2007 16:25:40 +0000 Subject: [PATCH] ups --- devel/devel.dmacvicar/CacheQuery_test.cc | 72 ------------------------ devel/devel.dmacvicar/SourceManager.cc | 0 2 files changed, 72 deletions(-) delete mode 100644 devel/devel.dmacvicar/CacheQuery_test.cc create mode 100644 devel/devel.dmacvicar/SourceManager.cc diff --git a/devel/devel.dmacvicar/CacheQuery_test.cc b/devel/devel.dmacvicar/CacheQuery_test.cc deleted file mode 100644 index f352c68ac..000000000 --- a/devel/devel.dmacvicar/CacheQuery_test.cc +++ /dev/null @@ -1,72 +0,0 @@ -#include - -#include -#include - -#include -#include -#include -#include - -#include "zypp/Product.h" -#include "zypp/detail/PackageImplIf.h" -#include "zypp/Package.h" - -#include "zypp2/cache/CacheInitializer.h" -#include "zypp2/cache/QueryFactory.h" -#include "zypp/data/ResolvableData.h" -#include "zypp/data/RecordId.h" -#include "zypp/capability/CapabilityImpl.h" -#include "zypp/base/Measure.h" - -using namespace std; -using namespace zypp; -using namespace zypp::debug; -using namespace zypp::capability; - - -int main(int argc, char **argv) -{ - try - { - //ZYpp::Ptr z = getZYpp(); - -// CapabilityImpl::Ptr freak = capability::parse( ResTraits::kind, "libc.so.6"); -// MIL << freak << endl; -// MIL << "isVer: " << isKind(freak) << endl; -// MIL << "isNam: " << isKind(freak) << endl; -// MIL << "isFil: " << isKind(freak) << endl; -// VersionedCap::Ptr v = asKind(freak); -// DBG << v << endl; - - Pathname dbfile = Pathname(getenv("PWD")) + "data.db"; - cout << 1 << endl; - zypp::cache::QueryFactory query(getenv("PWD")); - //zypp::cache::CacheInitializer init( "/", dbfile ); - //t.tick("init sqlite database"); - int i = 1; - //for ( ; i < 19000; i++ ) { - zypp::cache::CapabilityQuery capquery = query.createCapabilityQuery( ); - //cout << capquery.value() << endl; - //cout << 2 << endl; - while ( capquery.read() ) - { - //cout << 3 << endl; - //cout << capquery.value() << endl; - } - //} - } - catch ( const Exception &e ) - { - cout << e.msg() << endl; - } - catch ( const std::exception &e ) - { - cout << e.what() << endl; - } - - return 0; -} - - - diff --git a/devel/devel.dmacvicar/SourceManager.cc b/devel/devel.dmacvicar/SourceManager.cc new file mode 100644 index 000000000..e69de29bb -- 2.34.1