[gnome-software] packagekit: Assume that KIND_SOURCE means a repo
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] packagekit: Assume that KIND_SOURCE means a repo
- Date: Thu, 15 Feb 2018 14:48:59 +0000 (UTC)
commit b0a5abdc8a2d67115ecadc637066487f435506ae
Author: Kalev Lember <klember redhat com>
Date: Thu Feb 15 13:23:58 2018 +0100
packagekit: Assume that KIND_SOURCE means a repo
We're fixing the whole code base so that repo-release packages would be
KIND_GENERIC with QUIRK_HAS_SOURCE, and repos would be KIND_SOURCE.
plugins/packagekit/gs-plugin-packagekit.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/plugins/packagekit/gs-plugin-packagekit.c b/plugins/packagekit/gs-plugin-packagekit.c
index eb5df14b..c1240d09 100644
--- a/plugins/packagekit/gs-plugin-packagekit.c
+++ b/plugins/packagekit/gs-plugin-packagekit.c
@@ -274,13 +274,8 @@ gs_plugin_app_install (GsPlugin *plugin,
return TRUE;
/* enable repo */
- if (gs_app_get_kind (app) == AS_APP_KIND_SOURCE &&
- gs_app_get_source_ids (app)->len == 0) {
- /* KIND_SOURCE can be both a repository, or a package that
- * includes .repo files. If it has no source ids, then it's the
- * former and we can directly enable it here. */
+ if (gs_app_get_kind (app) == AS_APP_KIND_SOURCE)
return gs_plugin_repo_enable (plugin, app, cancellable, error);
- }
/* queue for install if installation needs the network */
if (!gs_plugin_get_network_available (plugin)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]