Commit 5c5b9e22 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

flatpak: Error out if a priority change couldn't be applied

parent 34832649
Pipeline #194240 failed with stage
in 1 minute and 6 seconds
......@@ -130,7 +130,12 @@ void FlatpakSourcesBackend::save()
if (prio <= last) {
FlatpakSourceItem *sourceItem = static_cast<FlatpakSourceItem *>(it);
flatpak_remote_set_prio(sourceItem->remote(), ++last);
flatpak_installation_modify_remote(sourceItem->flatpakInstallation(), sourceItem->remote(), nullptr, nullptr);
g_autoptr(GError) error = nullptr;
if (!flatpak_installation_modify_remote(sourceItem->flatpakInstallation(), sourceItem->remote(), nullptr, &error)) {
qDebug() << "failed setting priorities" << error->message;
}
it->setData(last, PrioRole);
} else {
last = prio;
}
......
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