[gnome-software/wip/ubuntu: 3/5] apt: Don't prompt user to upgrade held packages
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/ubuntu: 3/5] apt: Don't prompt user to upgrade held packages
- Date: Fri, 23 Sep 2016 02:21:42 +0000 (UTC)
commit f5a98d5f941ed397913b71c318b3f6d793cf1923
Author: Robert Ancell <robert ancell canonical com>
Date: Thu Sep 22 15:04:26 2016 +1200
apt: Don't prompt user to upgrade held packages
src/plugins/gs-plugin-apt.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-apt.cc b/src/plugins/gs-plugin-apt.cc
index 565c094..442b6d2 100644
--- a/src/plugins/gs-plugin-apt.cc
+++ b/src/plugins/gs-plugin-apt.cc
@@ -402,7 +402,7 @@ look_at_pkg (const pkgCache::PkgIterator &P,
if (g_strcmp0 (info->installed_version, info->update_version) == 0)
g_clear_pointer (&info->update_version, g_free);
- if (info->installed_version && info->update_version)
+ if (info->installed_version && info->update_version && P->SelectedState != pkgCache::State::Hold)
plugin->priv->updatable_packages =
g_list_append (plugin->priv->updatable_packages, info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]