[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 40/331] Check refresh type
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 40/331] Check refresh type
- Date: Wed, 4 May 2016 14:01:52 +0000 (UTC)
commit aa97ceabf1682ae6202419d2660fb2357ec3f25c
Author: Robert Ancell <robert ancell canonical com>
Date: Fri Feb 5 13:38:55 2016 +1300
Check refresh type
src/plugins/gs-plugin-apt.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-apt.c b/src/plugins/gs-plugin-apt.c
index 31b2f60..d6b6ef1 100644
--- a/src/plugins/gs-plugin-apt.c
+++ b/src/plugins/gs-plugin-apt.c
@@ -402,5 +402,9 @@ gs_plugin_refresh (GsPlugin *plugin,
GError **error)
{
//g_printerr ("APT: gs_plugin_refresh\n");
+
+ if ((flags & GS_PLUGIN_REFRESH_FLAGS_UPDATES) == 0)
+ return TRUE;
+
return aptd_transaction ("UpdateCache", NULL, error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]