Commit e9e1c7ac authored by Lukas Appelhans's avatar Lukas Appelhans

Don't show the packages we don't install

parent cccc7abe
......@@ -15,6 +15,7 @@
#include <akabeidatabase.h>
#include <akabeiclientqueue.h>
#include <akabeiclienttransactionhandler.h>
#include <akabeioperationrunner.h>
#include <kdebug.h>
#include <kio/global.h>
......@@ -93,7 +94,7 @@ void RemoveOperation::validationFinished(bool valid)
out << ", ";
out << item->package()->name();
removeSize += item->package()->installedSize();
if (item->action() == AkabeiClient::Remove) { //FIXME: Why this?
if (item->action() == AkabeiClient::Remove && !(Akabei::Backend::instance()->operationRunner()->processingOptions() & Akabei::SkipDependencies)) { //FIXME: Why this?
foreach (Akabei::Package * dep, item->requiredByTree()) {
out << ", " << dep->name();
removeSize += dep->installedSize();
......
......@@ -182,7 +182,7 @@ void SyncOperation::validationFinished(bool valid)
if (item->package()->database() != Akabei::Backend::instance()->localDatabase() && !QFile::exists(Akabei::Config::instance()->cacheDir().absoluteFilePath(item->package()->filename())))
downloadSize += item->package()->size();
installSize += item->package()->installedSize();
if (item->action() == AkabeiClient::Install) { //FIXME: Why this?
if (item->action() == AkabeiClient::Install && !(Akabei::Backend::instance()->operationRunner()->processingOptions() & Akabei::SkipDependencies)) { //FIXME: Why this?
foreach (Akabei::Package * dep, item->dependencyTree()) {
out << ", " << dep->name();
if (dep->database() != Akabei::Backend::instance()->localDatabase() && !QFile::exists(Akabei::Config::instance()->cacheDir().absoluteFilePath(dep->filename())))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment