Fix flatpak_summary_match_subrefs

We were checking the prefix twice here, instead of
checking prefix and suffix, which was obviously the
intention.

This caused extensions with non-matching architectures
to be reported as related refs.
tingping/wmclass
Matthias Clasen 2017-07-09 10:38:04 -04:00
parent ed08538f92
commit f71655a5f8
1 changed files with 1 additions and 1 deletions

View File

@ -2587,7 +2587,7 @@ flatpak_summary_match_subrefs (GVariant *summary, const char *ref)
continue;
/* Must match arch & branch */
if (!g_str_has_prefix (cur, ref_prefix))
if (!g_str_has_suffix (cur, ref_suffix))
continue;
id_start = strchr (cur, '/');