[gnome-software/wip/ubuntu-xenial] apt: Don't prompt user to upgrade held packages



commit 78089f4a1ac6c71989c332b68f6249cafaa7c863
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 4421ffa..2a4268d 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]