mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-07 16:39:05 -04:00
dir: Make use of is_flatpak_ref()
This commit is contained in:
@@ -15814,10 +15814,7 @@ flatpak_dir_delete_mirror_refs (FlatpakDir *self,
|
||||
* remotes, but that would not cover the case of if a remote was
|
||||
* deleted.
|
||||
*/
|
||||
if (g_str_has_prefix (c_r->ref_name, "app/") ||
|
||||
g_str_has_prefix (c_r->ref_name, "runtime/") ||
|
||||
g_str_has_prefix (c_r->ref_name, "appstream/") ||
|
||||
g_str_has_prefix (c_r->ref_name, "appstream2/") ||
|
||||
if (is_flatpak_ref (c_r->ref_name) ||
|
||||
g_strcmp0 (c_r->ref_name, OSTREE_REPO_METADATA_REF) == 0)
|
||||
{
|
||||
if (dry_run)
|
||||
|
||||
Reference in New Issue
Block a user