diff options
author | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2020-05-06 13:27:17 +0200 |
---|---|---|
committer | Alexander Larsson <alexander.larsson@gmail.com> | 2020-06-08 12:13:20 +0200 |
commit | 2fe18ed560ee531c42f263a0f29ad51e86c52298 (patch) | |
tree | 41a2249665dfe9fb329498805b358a74ed7b7cfb | |
parent | f7cf263af771d0cc8f85dc1b5a730f957687859e (diff) | |
download | flatpak-2fe18ed560ee531c42f263a0f29ad51e86c52298.tar.gz |
remote-modify: Set url-is-set to true when changing URL
Assume that if user explicitly modifies the URL, they want to keep
using that URL instead of having it overwritten by xa.redirect-url.
-rw-r--r-- | app/flatpak-builtins-remote-modify.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/flatpak-builtins-remote-modify.c b/app/flatpak-builtins-remote-modify.c index a7fa9e62..d6230b44 100644 --- a/app/flatpak-builtins-remote-modify.c +++ b/app/flatpak-builtins-remote-modify.c @@ -124,7 +124,10 @@ get_config_from_opts (FlatpakDir *dir, const char *remote_name, gboolean *change if (g_str_has_prefix (opt_url, "metalink=")) g_key_file_set_string (config, group, "metalink", opt_url + strlen ("metalink=")); else - g_key_file_set_string (config, group, "url", opt_url); + { + g_key_file_set_string (config, group, "url", opt_url); + g_key_file_set_boolean (config, group, "url-is-set", TRUE); + } *changed = TRUE; } |