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

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() ...@@ -214,7 +214,11 @@ void PKTransaction::proceed()
if (!m_proceedFunctions.isEmpty()) { if (!m_proceedFunctions.isEmpty()) {
processProceedFunction(); processProceedFunction();
} else { } 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);
}
} }
} }
......
Supports Markdown
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