Revision f2e4363c
b/tools/cfgupgrade | ||
---|---|---|
437 | 437 |
|
438 | 438 |
# Downgrade to the previous stable version |
439 | 439 |
if options.downgrade: |
440 |
if config_major != TARGET_MAJOR or config_minor != TARGET_MINOR: |
|
440 |
if not ((config_major == TARGET_MAJOR and config_minor == TARGET_MINOR) or |
|
441 |
(config_major == DOWNGRADE_MAJOR and |
|
442 |
config_minor == DOWNGRADE_MINOR)): |
|
441 | 443 |
raise Error("Downgrade supported only from the latest version (%s.%s)," |
442 | 444 |
" found %s (%s.%s.%s) instead" % |
443 | 445 |
(TARGET_MAJOR, TARGET_MINOR, config_version, config_major, |
Also available in: Unified diff