[PATCH] admin: reenable update checks

Andrew Shadura andrew at shadura.me
Tue Jun 9 07:58:35 EDT 2015


# HG changeset patch
# User Andrew Shadura <andrew at shadura.me>
# Date 1433851102 -7200
#      Tue Jun 09 13:58:22 2015 +0200
# Branch stable
# Node ID c670a49f595d5f03f924338adbe0de3fdd7853f6
# Parent  9c067ee8d368b7890f3cababc9bdfbf31ab8bfe7
admin: reenable update checks

URL is hardcoded here and users of older versions may have
invalid update URLs in their databases.

diff --git a/kallithea/controllers/admin/settings.py b/kallithea/controllers/admin/settings.py
--- a/kallithea/controllers/admin/settings.py
+++ b/kallithea/controllers/admin/settings.py
@@ -491,7 +491,7 @@ class SettingsController(BaseController)
         defaults = Setting.get_app_settings()
         defaults.update(self._get_hg_ui_settings())
         _update_url = defaults.get('update_url', '')
-        _update_url = "" # FIXME: disabled
+        _update_url = "https://kallithea-scm.org/api/v1/info/versions" # FIXME: don't hardcode
 
         _err = lambda s: '<div style="color:#ff8888; padding:4px 0px">%s</div>' % (s)
         try:


More information about the kallithea-general mailing list