<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div><span>Hi Kevin,</span></div><div><span><br></span></div><div><span>iirc I copied the logic from gnome PK so you could see if gnome-pk has</span></div><div><span>the same problem..</span></div><div> </div><div>________________________________<br>Daniel Nicoletti - KDE Developer<br>http://dantti.wordpress.com<br>When a wicked man dies, his hope perishes;<br>all he expected from his power comes to nothing. Prov. 11:7<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-size: 10pt; font-family: 'Courier New', courier, monaco, monospace, sans-serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">De:</span></b> Kevin Kofler
<kevin.kofler@chello.at><br><b><span style="font-weight: bold;">Para:</span></b> packagekit@lists.freedesktop.org<br><b><span style="font-weight: bold;">Enviadas:</span></b> Quarta-feira, 21 de Setembro de 2011 15:04<br><b><span style="font-weight: bold;">Assunto:</span></b> [packagekit] Format of link lists (e.g. Bugzilla references)<br></font><br>Hi,<br><br>I found an interoperability issue between PackageKit-zif and <br>Apper/KPackageKit, and before I file a bug, I need to know who's wrong:<br><br>Apper/KPackageKit expects the lists to have the URL first and the title <br>second, i.e. (from Apper master, but I also checked the older KPackageKit <br>code and it did the same):<br> for (int i = 0; i < length; i += 2) {<br> if (!ret.isEmpty()) {<br> ret += "<br/>";<br> }<br> ret += QString::fromUtf8("
\xE2\x80\xA2 <a href=\"") + <br>linkList.at(i) + "\">"<br> + linkList.at(i + 1) + "</a>";<br> }<br><br>The PackageKit zif backend, on the other hand, produces the URL first:<br>g_string_append_printf (string_bugzilla, "%s;%s;",<br> zif_update_info_get_title (info),<br> zif_update_info_get_url (info));<br><br>This is not noticeable with the yum backend because it just sets both the <br>URL and the title to the URL.<br><br>So, who's wrong?<br><br> Kevin Kofler<br><br>_______________________________________________<br>PackageKit mailing list<br><a ymailto="mailto:PackageKit@lists.freedesktop.org" href="mailto:PackageKit@lists.freedesktop.org">PackageKit@lists.freedesktop.org</a><br><a
href="http://lists.freedesktop.org/mailman/listinfo/packagekit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/packagekit</a><br><br><br></div></div></blockquote></div></div></body></html>