forked from Mirrors/flatpak-builder
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
parent
ed08538f92
commit
f71655a5f8
|
@ -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, '/');
|
||||
|
|
Loading…
Reference in New Issue