Skip to content
Browse files

Fixes some broken configuration files caused by the 'source!None' bug,

git-svn-id: svn://cherokee-project.com/cherokee/trunk@4895 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information...
1 parent c56c892 commit 36acdf4e58096fd51cc0f3e26a3e0ac9e2e454d0 @alobbs alobbs committed Apr 20, 2010
Showing with 11 additions and 0 deletions.
  1. +11 −0 admin/config_version.py
View
11 admin/config_version.py
@@ -35,6 +35,13 @@ def upgrade_to_0_99_40 (cfg):
for pre in to_del:
del(cfg[pre])
+# Converts from 0.99.40 to 0.99.45
+def upgrade_to_0_99_45 (cfg):
+ # Remove some broken 'source' entries:
+ # http://bugs.cherokee-project.com/768
+ if 'None' in cfg.keys('source'):
+ del (cfg['source!None'])
+
def config_version_get_current():
ver = configured.VERSION.split ('b')[0]
@@ -97,5 +104,9 @@ def config_version_update_cfg (cfg):
if ver_config_i < 99040:
upgrade_to_0_99_40 (cfg)
+ # Update to.. 0.99.45
+ if ver_config_i < 99045:
+ upgrade_to_0_99_45 (cfg)
+
cfg["config!version"] = ver_release_s
return True

0 comments on commit 36acdf4

Please sign in to comment.
Something went wrong with that request. Please try again.