[gnome-software] rpm-ostree: Set the origin for available packages
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] rpm-ostree: Set the origin for available packages
- Date: Sun, 24 Feb 2019 16:45:21 +0000 (UTC)
commit 32f4b1d5a0053b386659c0412371405c73941729
Author: Kalev Lember <klember redhat com>
Date: Sun Feb 24 17:08:36 2019 +0100
rpm-ostree: Set the origin for available packages
plugins/rpm-ostree/gs-plugin-rpm-ostree.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
index 9b1770e9..43c189b1 100644
--- a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
+++ b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
@@ -1106,6 +1106,13 @@ resolve_available_packages_app (GsPlugin *plugin,
/* anything not part of the base system can be removed */
gs_app_remove_quirk (app, GS_APP_QUIRK_COMPULSORY);
+
+ /* set origin */
+ if (gs_app_get_origin (app) == NULL) {
+ const gchar *reponame = dnf_package_get_reponame (pkg);
+ gs_app_set_origin (app, reponame);
+ }
+
return TRUE /* found */;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]