Changeset 1040:1c0a2408634b for src


Ignore:
Timestamp:
03/14/22 14:46:13 (2 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

New default update URL (re #357)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/config.py

    r1011 r1040  
    211211class Config(object):
    212212    """Our configuration."""
    213     DEFAULT_UPDATE_URL = "https://mlx.varadiistvan.hu/update"
     213    DEFAULT_UPDATE_URL = "https://mlx.varadiistvan.hu/update/new"
    214214
    215215    _messageTypesSection = "messageTypes"
     
    256256        self._autoUpdate = True
    257257        self._updateURL = Config.DEFAULT_UPDATE_URL
    258         if secondaryInstallation:
    259             self._updateURL += "/exp"
     258        #if secondaryInstallation:
     259        #    self._updateURL += "/exp"
    260260        self._updateURLUpdated = True
    261261        self._useRPC = True
     
    788788
    789789        self._autoUpdate = self._getBoolean(config, "update", "auto", True)
    790         self._updateURL = self._get(config, "update", "url",
    791                                     Config.DEFAULT_UPDATE_URL +
    792                                     ("/exp" if secondaryInstallation else ""))
    793790        self._updateURLUpdated = self._getBoolean(config, "update",
    794791                                                  "urlUpdated", False)
     792        if self._updateURLUpdated:
     793            self._updateURL = self._get(config, "update", "url",
     794                                        Config.DEFAULT_UPDATE_URL) # +
     795                                        #("/exp" if secondaryInstallation else ""))
    795796        if self._updateURL.startswith("http://") and not self._updateURLUpdated:
    796797            self._updateURL = "https://" + self._updateURL[7:]
Note: See TracChangeset for help on using the changeset viewer.