[gnome-software] repos dialog: trivial: Special-case rpm-ostree repos the same as packagekit
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] repos dialog: trivial: Special-case rpm-ostree repos the same as packagekit
- Date: Tue, 30 Apr 2019 13:52:05 +0000 (UTC)
commit 8e661a5d4a6d390be8eaff57acae649918c6bf81
Author: Kalev Lember <klember redhat com>
Date: Tue Apr 30 15:18:37 2019 +0200
repos dialog: trivial: Special-case rpm-ostree repos the same as packagekit
src/gs-repo-row.c | 1 +
src/gs-repos-dialog.c | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/src/gs-repo-row.c b/src/gs-repo-row.c
index f3d09118..7ce7e618 100644
--- a/src/gs-repo-row.c
+++ b/src/gs-repo-row.c
@@ -68,6 +68,7 @@ repo_supports_removal (GsApp *repo)
/* can't remove a repo, only enable/disable existing ones */
if (g_strcmp0 (management_plugin, "fwupd") == 0 ||
g_strcmp0 (management_plugin, "packagekit") == 0 ||
+ g_strcmp0 (management_plugin, "rpm-ostree") == 0 ||
g_strcmp0 (management_plugin, "shell-extensions") == 0)
return FALSE;
diff --git a/src/gs-repos-dialog.c b/src/gs-repos-dialog.c
index 3d9f7f57..478acb7d 100644
--- a/src/gs-repos-dialog.c
+++ b/src/gs-repos-dialog.c
@@ -135,6 +135,7 @@ repo_supports_removal (GsApp *repo)
/* can't remove a repo, only enable/disable existing ones */
if (g_strcmp0 (management_plugin, "fwupd") == 0 ||
g_strcmp0 (management_plugin, "packagekit") == 0 ||
+ g_strcmp0 (management_plugin, "rpm-ostree") == 0 ||
g_strcmp0 (management_plugin, "shell-extensions") == 0)
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]