diff options
Diffstat (limited to 'src/pacman')
-rw-r--r-- | src/pacman/callback.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c index a80172b2..5edcc966 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -285,10 +285,11 @@ void cb_trans_conv(pmtransconv_t event, void *data1, void *data2, { alpm_list_t *unresolved = (alpm_list_t *) data1; alpm_list_t *namelist = NULL, *i; - size_t count = alpm_list_count(namelist); + size_t count = 0; for (i = unresolved; i; i = i->next) { namelist = alpm_list_add(namelist, (char *)alpm_pkg_get_name(i->data)); + count++; } printf(_n( ":: The following package cannot be upgraded due to unresolvable dependencies:\n", |