diff options
author | Adrien BUSTANY <madcat@mymadcat.com> | 2008-06-08 23:37:18 +0200 |
---|---|---|
committer | Adrien BUSTANY <madcat@mymadcat.com> | 2008-06-08 23:37:18 +0200 |
commit | 192a6f2786442e6e34350befe17991493b86832d (patch) | |
tree | e73bd4c1dc39c2fb046252a19592026011e898d3 /lib | |
parent | 5c53297d8e8d509f98e75cc3e32dfc0c8e7f3207 (diff) |
Resolve
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transaction.cpp | 5 | ||||
-rw-r--r-- | lib/Transaction.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/Transaction.cpp b/lib/Transaction.cpp index adcc01d..e3a8879 100644 --- a/lib/Transaction.cpp +++ b/lib/Transaction.cpp @@ -106,6 +106,11 @@ void Transaction::whatProvides(const QString &filter, const Provides::Value &typ proxy->WhatProvides(filter, EnumToString<Provides>(type), search); } +void Transaction::resolve(const QString &filter, Package *p) { + renewTid(); + proxy->Resolve(filter, p->id()); +} + void Transaction::installPackages(const QList<Package*> &packages) { renewTid(); QStringList pids; diff --git a/lib/Transaction.h b/lib/Transaction.h index c1199d3..30e7797 100644 --- a/lib/Transaction.h +++ b/lib/Transaction.h @@ -39,6 +39,7 @@ public: void getDepends(Package *p, const QString &filter, bool recursive = true); void getRequires(Package *p, const QString &filter, bool recursive = true); void whatProvides(const QString &filter, const Provides::Value &type, const QString& search); + void resolve(const QString &filter, Package *p); void installPackages(const QList<Package*> &packages); void installPackage(Package *p); |