Files
flatpak/tests
Matthew Leeds 02d1a4ed30 install: Make the REMOTE arg optional
Currently the install command requires the user to specify the remote
name in addition to each ref that is to be installed. This commit
implements an auto-detection feature so that the user can specify only
refs (or partial refs) and Flatpak will try to determine the remote to
use.

The Flatpak security model does not consider all remotes equally
trustworthy, but that's okay because the user is asked to confirm the
remote choice before it's used.

The way it's implemented is that we look at only the first ref (even if
there are several) and iterate through each remote in each installation
trying to find it, stopping at the first one where it's found and asking
for confirmation of it. There's a trade-off here between efficiency and
accuracy, since it could be pretty costly to search every remote in
every installation. I think this should be good enough for most use
cases, and the user is still free to specify a remote and avoid that
code path.

This should hopefully save people a bit of typing and make the Flatpak
CLI a bit friendlier.

Closes: #2113
Approved by: matthiasclasen
2018-10-31 22:48:56 +00:00
..
2016-02-25 15:27:37 +01:00
2016-06-10 12:59:11 +02:00
2017-04-24 10:04:23 +02:00
2017-04-24 10:04:23 +02:00
2016-02-25 19:03:09 +01:00
2018-10-15 06:51:58 +00:00
2018-10-15 06:51:58 +00:00
2018-10-03 13:19:35 +00:00
2018-10-23 20:10:37 +00:00
2018-10-23 20:10:37 +00:00