Commit 066f13a7 authored by Lukas Appelhans's avatar Lukas Appelhans

Moar checks

parent a4cf698a
......@@ -112,6 +112,8 @@ void SyncOperation::start(QList<APM::Operation> operations, QMultiHash<APM::Oper
void SyncOperation::upgrade(QUuid , QList< Akabei::Package* > packages)
{
if (packages.isEmpty())
return;
QHash<QString, QList<Akabei::Package*> > pkgs;
foreach (Akabei::Package * pkg, packages) {
pkgs[pkg->name()].append(pkg);
......@@ -135,6 +137,10 @@ void SyncOperation::upgrade(QUuid , QList< Akabei::Package* > packages)
}
}
}
if (toBeUpgraded.isEmpty()) {
QCoreApplication::instance()->quit();
return;
}
QueueOperation *op = new QueueOperation(m_operations, m_options, this);
op->start(AkabeiClient::Update, toBeUpgraded);
connect(op, SIGNAL(finished()), QCoreApplication::instance(), SLOT(quit()));
......
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