summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Transaction.cpp5
-rw-r--r--lib/Transaction.h1
-rw-r--r--lib/coverage-transaction.txt2
3 files changed, 7 insertions, 1 deletions
diff --git a/lib/Transaction.cpp b/lib/Transaction.cpp
index dde3314..deadc17 100644
--- a/lib/Transaction.cpp
+++ b/lib/Transaction.cpp
@@ -75,6 +75,11 @@ void Transaction::getDepends (Package *p, const QString& filter, bool recursive)
proxy->GetDepends(p->id(), filter, recursive);
}
+void Transaction::getRequires (Package *p, const QString& filter, bool recursive) {
+ renewTid();
+ proxy->GetDepends(p->id(), filter, recursive);
+}
+
void Transaction::installPackages(const QList<Package*> &packages) {
renewTid();
QStringList pids;
diff --git a/lib/Transaction.h b/lib/Transaction.h
index b4a5b2e..bac6b69 100644
--- a/lib/Transaction.h
+++ b/lib/Transaction.h
@@ -33,6 +33,7 @@ public:
void getDetails(Package *p);
void getFiles(Package *p);
void getDepends(Package *p, const QString &filter, bool recursive = true);
+ void getRequires(Package *p, const QString &filter, bool recursive = true);
void installPackages(const QList<Package*> &packages);
void installPackage(Package *p);
diff --git a/lib/coverage-transaction.txt b/lib/coverage-transaction.txt
index 5f634aa..e8115e4 100644
--- a/lib/coverage-transaction.txt
+++ b/lib/coverage-transaction.txt
@@ -15,7 +15,7 @@ X GetFiles
X GetPackages
X GetProgress
GetRepoList
- GetRequires
+X GetRequires
X GetRole
X GetStatus
GetUpdateDetail