install: Don't search noenumerate remotes

Currently if you don't specify a remote to the install command, it might
suggest that you use an origin remote like "org.gnome.Builder-origin"
which doesn't make much sense since those are tightly tied to the app
installed via bundle that created them. So this commit respects the
"xa.noenumerate" flag that is set on such remotes, so they aren't
searched for refs.

Closes: #2376
Approved by: matthiasclasen
This commit is contained in:
Matthew Leeds
2018-12-02 22:14:43 -08:00
committed by Atomic Bot
parent a45029907e
commit 624cc6ff0b

View File

@@ -347,7 +347,8 @@ flatpak_builtin_install (int argc, char **argv, GCancellable *cancellable, GErro
g_auto(GStrv) refs = NULL;
g_autoptr(GError) local_error = NULL;
if (flatpak_dir_get_remote_disabled (this_dir, this_remote))
if (flatpak_dir_get_remote_disabled (this_dir, this_remote) ||
flatpak_dir_get_remote_noenumerate (this_dir, this_remote))
continue;
this_default_branch = flatpak_dir_get_remote_default_branch (this_dir, this_remote);