Skip to content

Commit

Permalink
remote-add: Assume --from if location ends with .flatpakrepo
Browse files Browse the repository at this point in the history
If you try to set the flatpakrepo uri as a repo uri for a new remote
things get really confused, so lets try to do the right thing anyway.
  • Loading branch information
alexlarsson committed Oct 21, 2016
1 parent eb92727 commit c3bea6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/flatpak-builtins-add-remote.c
Expand Up @@ -390,7 +390,8 @@ flatpak_builtin_add_remote (int argc, char **argv,
return flatpak_fail (error, _("Remote %s already exists"), remote_name);
}

if (opt_from)
if (opt_from ||
g_str_has_suffix (location, ".flatpakrepo"))
{
load_options (location, &gpg_data);
if (opt_url == NULL)
Expand Down

0 comments on commit c3bea6c

Please sign in to comment.