Commit f0495b39 authored by Phaedrus Leeds's avatar Phaedrus Leeds
Browse files

Merge branch 'backport-517-packagekit-ids-gnome-3-38' into 'gnome-3-38'

Backport !517 “packagekit: Package details not found when not having 4 semicolons” to gnome-3-38

See merge request GNOME/gnome-software!578
parents b06d8444 1679c959
......@@ -433,10 +433,10 @@ package_id_equal (gconstpointer a,
{
const gchar *package_id_a = a;
const gchar *package_id_b = b;
gsize n_semicolons = 0;
gsize i, n_semicolons = 0;
/* compare up to and including the last semicolon */
for (gsize i = 0; package_id_a[i] != '\0' && package_id_b[i] != '\0'; i++) {
for (i = 0; package_id_a[i] != '\0' && package_id_b[i] != '\0'; i++) {
if (package_id_a[i] != package_id_b[i])
return FALSE;
if (package_id_a[i] == ';')
......@@ -445,7 +445,7 @@ package_id_equal (gconstpointer a,
return TRUE;
}
return FALSE;
return package_id_a[i] == package_id_b[i];
}
GHashTable *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment