[pacman-dev] Plurals (was: [translation] Let's start the work for 3.5.0 release)

Dan McGee dpmcgee at gmail.com
Mon Mar 7 16:33:29 EST 2011


On Mon, Mar 7, 2011 at 3:00 PM, Nagy Gabor <ngaba at bibl.u-szeged.hu> wrote:
>> Yes, this is correct (both sentence).
>>
>> For testing the non-plural case, pick a sync package which is not
>> installed on your system (some KDE stuff, for example), and put one of
>> its (pulled) depends to IgnorePkg. For example, "sudo pacman -S gimp
>> --ignore libwmf" is good for testing here, and I should see the
>> non-plural form (but I can see the plural form).
>>
>> NG
>
> Wait, I should have tested with LANG=C first. :-) That is also wrong, so
> probably there is a bug in the source code...

diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index a80172b..5edcc96 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",


More information about the pacman-dev mailing list