Commit 47e1f90f authored by Lukas Appelhans's avatar Lukas Appelhans

Only remove packages installed as deps (-ss not implemented yet)

parent d35d446c
......@@ -78,7 +78,10 @@ void RemoveOperation::removeRecursive(QList<Akabei::Package*> packages)
QList<Akabei::Package*> pkgs;
pkgs << packages;
foreach (Akabei::Package * pkg, packages) {
pkgs << pkg->computeDependencies();
foreach (Akabei::Package * p, pkg->computeDependencies()) {
if (p->installReason() == Akabei::Package::InstalledAsDependencyReason)
pkgs << p;
QueueOperation *operation = new QueueOperation(m_operations, m_options, this);
operation->start(AkabeiClient::Remove, pkgs);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment