diff options
-rw-r--r-- | bin/update/config.py | 2 | ||||
-rwxr-xr-x | bin/update/create_partial_update.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/bin/update/config.py b/bin/update/config.py index 2af895bb2921..0279a172d258 100644 --- a/bin/update/config.py +++ b/bin/update/config.py @@ -9,6 +9,7 @@ class Config(object): self.channel = None self.base_url = None self.upload_url = None + self.server_url = None def parse_config(config_file): config = configparser.ConfigParser() @@ -21,5 +22,6 @@ def parse_config(config_file): data.certificate_path = updater_data['certificate-path'] data.channel = updater_data['channel'] data.upload_url = updater_data['upload-url'] + data.server_url = updater_data["ServerURL"] return data diff --git a/bin/update/create_partial_update.py b/bin/update/create_partial_update.py index 23d4f6fe6a90..232cc68bfe1a 100755 --- a/bin/update/create_partial_update.py +++ b/bin/update/create_partial_update.py @@ -55,7 +55,7 @@ def handle_language(lang_entries, filedir): def download_mar_for_update_channel_and_platform(config, platform, temp_dir): mar = os.environ.get('MAR', 'mar') - base_url = "http://updater.libreofficecrash.org/update/partial-targets/1/" + base_url = config.server_url + "update/partial-targets/1/" url = base_url + platform + "/" + config.channel r = requests.get(url) if r.status_code is not 200: |