[packagekit] Format of link lists (e.g. Bugzilla references)

Daniel Nicoletti daniel_nic85 at yahoo.com.br
Wed Sep 21 12:30:19 PDT 2011


Hi Kevin,

iirc I copied the logic from gnome PK so you could see if gnome-pk has
the same problem..
 
________________________________
Daniel Nicoletti - KDE Developer
http://dantti.wordpress.com
When a wicked man dies, his hope perishes;
all he expected from his power comes to nothing. Prov. 11:7


>________________________________
>De: Kevin Kofler <kevin.kofler at chello.at>
>Para: packagekit at lists.freedesktop.org
>Enviadas: Quarta-feira, 21 de Setembro de 2011 15:04
>Assunto: [packagekit] Format of link lists (e.g. Bugzilla references)
>
>Hi,
>
>I found an interoperability issue between PackageKit-zif and 
>Apper/KPackageKit, and before I file a bug, I need to know who's wrong:
>
>Apper/KPackageKit expects the lists to have the URL first and the title 
>second, i.e. (from Apper master, but I also checked the older KPackageKit 
>code and it did the same):
>    for (int i = 0; i < length; i += 2) {
>        if (!ret.isEmpty()) {
>            ret += "<br/>";
>        }
>        ret += QString::fromUtf8(" \xE2\x80\xA2 <a href=\"") + 
>linkList.at(i) + "\">"
>               + linkList.at(i + 1) + "</a>";
>    }
>
>The PackageKit zif backend, on the other hand, produces the URL first:
>g_string_append_printf (string_bugzilla, "%s;%s;",
>                        zif_update_info_get_title (info),
>                        zif_update_info_get_url (info));
>
>This is not noticeable with the yum backend because it just sets both the 
>URL and the title to the URL.
>
>So, who's wrong?
>
>        Kevin Kofler
>
>_______________________________________________
>PackageKit mailing list
>PackageKit at lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/packagekit
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20110921/294e2fc9/attachment-0003.htm>


More information about the PackageKit mailing list