Skip to content

Commit 1431f94

Browse files
committed
issue1926124: fix crash in roundup_admin migrate option wih anydbm
Patch submitted by Henry (henryl), modified value to False since this produces the correct "No migration action required" output from the migrate command.
1 parent bea8f61 commit 1431f94

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGES.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,11 @@ Fixed:
157157
http://hg.python.org/tracker/roundup/rev/98508a47c126 by
158158
Martin.V.Loewis. Numeric test patch applied, Integer code and tests
159159
developed by John Rouillard.
160-
160+
- issue1926124: fix crash in roundup_admin migrate option.
161+
Patch submitted by Henry (henryl), modified value to False
162+
since this produces the correct "No migration action required"
163+
output from the migrate command.
164+
161165
2016-01-11: 1.5.1
162166

163167
Pay attention:

roundup/backends/back_anydbm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ class Database(FileStorage, hyperdb.Database, roundupdb.Database):
147147

148148
dbtype = "anydbm"
149149

150+
# used by migrate roundup_admin command. Is a no-op for anydbm.
151+
# but needed to stop traceback in admin.
152+
db_version_updated = False
150153

151154
def __init__(self, config, journaltag=None):
152155
"""Open a hyperdatabase given a specifier to some storage.

0 commit comments

Comments
 (0)