aboutsummaryrefslogtreecommitdiff
path: root/src/apt-transaction.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-08-18 14:30:05 -0400
committerKen VanDine <ken.vandine@canonical.com>2011-08-18 14:30:05 -0400
commit7cb790290cb874e06deca13497eed34079b4fb8c (patch)
treea2cad5eb3f5a2f03a61e2751eebcbb0d779a2ae7 /src/apt-transaction.c
parentb5eb255fae2158fde84def56b46fa6c5424f5b84 (diff)
parentdea3599b2e7061a1ece931ac5afae57c8c28f125 (diff)
downloadayatana-indicator-session-7cb790290cb874e06deca13497eed34079b4fb8c.tar.gz
ayatana-indicator-session-7cb790290cb874e06deca13497eed34079b4fb8c.tar.bz2
ayatana-indicator-session-7cb790290cb874e06deca13497eed34079b4fb8c.zip
Import upstream version 0.3.2
Diffstat (limited to 'src/apt-transaction.c')
-rw-r--r--src/apt-transaction.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/apt-transaction.c b/src/apt-transaction.c
index 647f4ba..be1c57b 100644
--- a/src/apt-transaction.c
+++ b/src/apt-transaction.c
@@ -185,11 +185,18 @@ apt_transaction_receive_signal (GDBusProxy * proxy,
g_variant_get (value, "(asasasasasasas)", &install,
&reinstall, &remove, &purge, &upgrade, &downgrade,
&keep);
- gboolean upgrade_needed = (g_strv_length(upgrade) > 0) ||
- (g_strv_length(install) > 0) ||
- (g_strv_length(reinstall) > 0) ||
- (g_strv_length(remove) > 0) ||
- (g_strv_length(purge) > 0);
+ /*
+ g_debug ("upgrade package length %i", g_strv_length(upgrade));
+ g_debug ("install package length %i", g_strv_length(install));
+ g_debug ("reinstall package length %i", g_strv_length(reinstall));
+ g_debug ("remove package length %i", g_strv_length(remove));
+ g_debug ("purge package length %i", g_strv_length(purge));
+ */
+ gboolean upgrade_needed = (g_strv_length(upgrade) > 1) ||
+ (g_strv_length(install) > 1) ||
+ (g_strv_length(reinstall) > 1) ||
+ (g_strv_length(remove) > 1) ||
+ (g_strv_length(purge) > 1);
if (upgrade_needed == TRUE){
current_state = UPDATES_AVAILABLE;
}