Commit b653ed82 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

pk: improve behaviour when dealing with local files

Make sure we only query for details and files once. It doesn't help to
request it repeatedly and makes aptcc single-threaded behaviour less clunky.
parent 3b16167f
......@@ -63,6 +63,8 @@ QString LocalFilePKResource::origin() const
void LocalFilePKResource::fetchDetails()
{
if (!m_details.isEmpty())
return;
m_details.insert(QStringLiteral("fetching"), true);//we add an entry so it's not re-fetched.
PackageKit::Transaction* transaction = PackageKit::Daemon::getDetailsLocal(m_path.toLocalFile());
......
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