Repository navigation
dir: Match pre-existing remotes better wrt collection-id - #2324
Closed
alexlarsson wants to merge 3 commits into
Closed
alexlarsson wants to merge 3 commits into
alexlarsson wants to merge 3 commits into
Conversation
If you have a pre-existing remote configured its exact definition might differ from the one specified in a flatpakrepo file and yet be the same. For example, i have: $ flatpak --user remotes -d Name Title URL Collection ID Priority Options flathub Flathub https://dl.flathub.org/repo/ org.flathub.Stable 1 Yet when i install a flatpakref: $ flatpak --user install http://flathub.org/repo/appstream/org.gnome.gedit.flatpakref The application org.gnome.gedit depends on runtimes from: https://dl.flathub.org/repo/ Configure this as new remote 'flathub-1' [y/n]: Because the flathub flatpakrepo does not yet have the collection id specified. So, we need to be more lenient when matching the pre-configured remotes.
Member
Author
|
Hmm, seems the test actually relied on this not matching if the url matched but not the collection id. Will look into this tomorrow. |
mwleeds
approved these changes
Nov 15, 2018
mwleeds
left a comment
Contributor
There was a problem hiding this comment.
LGTM, just found a typo in a comment
| } | ||
|
|
||
| /* This tries to find a pre-configured remote for the specified uri | ||
| * and (optionally) collection id. This ia a bit more complex than it |
Member
Author
|
📌 Commit 1a70d83 has been approved by |
|
☀️ Test successful - status-papr |
alexlarsson
added a commit
that referenced
this pull request
Nov 16, 2018
If you have a pre-existing remote configured its exact definition might differ from the one specified in a flatpakrepo file and yet be the same. For example, i have: $ flatpak --user remotes -d Name Title URL Collection ID Priority Options flathub Flathub https://dl.flathub.org/repo/ org.flathub.Stable 1 Yet when i install a flatpakref: $ flatpak --user install http://flathub.org/repo/appstream/org.gnome.gedit.flatpakref The application org.gnome.gedit depends on runtimes from: https://dl.flathub.org/repo/ Configure this as new remote 'flathub-1' [y/n]: Because the flathub flatpakrepo does not yet have the collection id specified. So, we need to be more lenient when matching the pre-configured remotes. Closes: #2324 Approved by: alexlarsson (cherry picked from commit 1ce0246)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If you have a pre-existing remote configured its exact definition
might differ from the one specified in a flatpakrepo file and yet
be the same.
For example, i have:
$ flatpak --user remotes -d
Name Title URL Collection ID Priority Options
flathub Flathub https://dl.flathub.org/repo/ org.flathub.Stable 1
Yet when i install a flatpakref:
$ flatpak --user install http://flathub.org/repo/appstream/org.gnome.gedit.flatpakref
The application org.gnome.gedit depends on runtimes from:
https://dl.flathub.org/repo/
Configure this as new remote 'flathub-1' [y/n]:
Because the flathub flatpakrepo does not yet have the collection id specified.
So, we need to be more lenient when matching the pre-configured remotes.