Commit 0db81d6e authored by Alexander Lohnau's avatar Alexander Lohnau 💬

Fix installation of local packages

In newer versions they were considered untrusted, that
is why the installation always failed.

BUG: 428125
FIXED-in: 5.20.4
parent 4811069b
......@@ -214,7 +214,11 @@ void PKTransaction::proceed()
if (!m_proceedFunctions.isEmpty()) {
processProceedFunction();
} else {
trigger(PackageKit::Transaction::TransactionFlagOnlyTrusted);
if (m_apps.size() == 1 && qobject_cast<LocalFilePKResource*>(m_apps.at(0))) {
trigger(PackageKit::Transaction::TransactionFlagNone);
} else {
trigger(PackageKit::Transaction::TransactionFlagOnlyTrusted);
}
}
}
......
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