Commit 67cf4a37 authored by Alessandro Astone's avatar Alessandro Astone
Browse files

flatpak: Do not discard remotes with different installations as duplicates

One remote may offer both `user` and `system` installations.

BUG: 443745
parent e36f4d08
......@@ -826,14 +826,14 @@ QSharedPointer<FlatpakSource> FlatpakBackend::integrateRemote(FlatpakInstallatio
{
Q_ASSERT(m_refreshAppstreamMetadataJobs != 0);
for (auto source : qAsConst(m_flatpakSources)) {
if (source->url() == flatpak_remote_get_url(remote)) {
if (source->url() == flatpak_remote_get_url(remote) && source->installation() == flatpakInstallation) {
qDebug() << "do not add a source twice" << source << remote;
metadataRefreshed();
return source;
}
}
for (auto source : qAsConst(m_flatpakLoadingSources)) {
if (source->url() == flatpak_remote_get_url(remote)) {
if (source->url() == flatpak_remote_get_url(remote) && source->installation() == flatpakInstallation) {
qDebug() << "do not add a source twice" << source << remote;
metadataRefreshed();
return source;
......
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