[gnome-software] trivial: Speed up file installation by never resolving local packages
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Speed up file installation by never resolving local packages
- Date: Mon, 28 Sep 2015 11:36:12 +0000 (UTC)
commit 73984f124fb08c7e3f85151c8bbba75285ff3854
Author: Richard Hughes <richard hughsie com>
Date: Mon Sep 28 12:29:05 2015 +0100
trivial: Speed up file installation by never resolving local packages
src/plugins/gs-plugin-packagekit-refine.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-refine.c b/src/plugins/gs-plugin-packagekit-refine.c
index 774fed3..316032a 100644
--- a/src/plugins/gs-plugin-packagekit-refine.c
+++ b/src/plugins/gs-plugin-packagekit-refine.c
@@ -292,6 +292,8 @@ gs_plugin_packagekit_resolve_packages (GsPlugin *plugin,
packages = pk_results_get_package_array (results);
for (l = list; l != NULL; l = l->next) {
app = GS_APP (l->data);
+ if (gs_app_get_metadata_item (app, "PackageKit::local-filename") != NULL)
+ continue;
gs_plugin_packagekit_resolve_packages_app (plugin, packages, app);
}
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]