aboutsummaryrefslogtreecommitdiff
path: root/src/apt-transaction.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-08-18 14:51:48 -0400
committerKen VanDine <ken.vandine@canonical.com>2011-08-18 14:51:48 -0400
commit92cb2ff94b4efb98437639a7c37fa894efa03556 (patch)
tree1c13f554a5cbf54ac86a0663d1aedb40cd1870fc /src/apt-transaction.c
parent7d476f1a4e0717678d5b1d86f022948f8959fa57 (diff)
parent7cb790290cb874e06deca13497eed34079b4fb8c (diff)
downloadayatana-indicator-session-92cb2ff94b4efb98437639a7c37fa894efa03556.tar.gz
ayatana-indicator-session-92cb2ff94b4efb98437639a7c37fa894efa03556.tar.bz2
ayatana-indicator-session-92cb2ff94b4efb98437639a7c37fa894efa03556.zip
releasing version 0.3.2-0ubuntu1
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;
}