[gnome-software] rpm-ostree: Set origin for installed packages



commit 6a12946f6dde23b40e5b6f9a832f7de4b716f349
Author: Kalev Lember <klember redhat com>
Date:   Tue May 7 14:16:45 2019 +0200

    rpm-ostree: Set origin for installed packages
    
    Just use 'rpm-ostree' as origin to get something that's better than an
    empty field. We'll need to implement /etc/ostree/remotes.d parsing in
    the future, but this should do for now.

 plugins/rpm-ostree/gs-plugin-rpm-ostree.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
index a0509926..650dd30d 100644
--- a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
+++ b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
@@ -1196,6 +1196,8 @@ resolve_installed_packages_app (GsPlugin *plugin,
                                /* can't remove packages that are part of the base system */
                                gs_app_add_quirk (app, GS_APP_QUIRK_COMPULSORY);
                        }
+                       if (gs_app_get_origin (app) == NULL)
+                               gs_app_set_origin (app, "rpm-ostree");
                        return TRUE /* found */;
                }
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]