mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-20 16:04:29 -04:00
dir: Don't try to fetch the summary of disabled remotes
In flatpak there are two ways a remote can be disabled, an empty URL or xa.disable set to TRUE. flatpak_dir_remote_fetch_summary() already doesn't try to fetch the summary in the former case; this checks the latter as well. Closes: #1641 Approved by: alexlarsson
This commit is contained in:
committed by
Atomic Bot
parent
baece4293a
commit
013ff8d900
@@ -8143,7 +8143,7 @@ flatpak_dir_remote_fetch_summary (FlatpakDir *self,
|
||||
if (!ostree_repo_remote_get_url (self->repo, name_or_uri, &url, error))
|
||||
return FALSE;
|
||||
|
||||
if (*url == '\0')
|
||||
if (!g_str_has_prefix (name_or_uri, "file:") && flatpak_dir_get_remote_disabled (self, name_or_uri))
|
||||
{
|
||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_DATA,
|
||||
"Can't fetch summary from disabled remote ‘%s’", name_or_uri);
|
||||
|
||||
Reference in New Issue
Block a user