mirror of
https://github.com/frappe/bench.git
synced 2025-01-24 23:48:24 +00:00
fix --upgrade logic
This commit is contained in:
parent
2b5df6f516
commit
11715758f9
@ -221,7 +221,7 @@ def update(pull=False, patch=False, build=False, bench=False, auto=False, restar
|
|||||||
print "This update will cause a major version change in Frappe/ERPNext from {0} to {1}.".format(*version_upgrade)
|
print "This update will cause a major version change in Frappe/ERPNext from {0} to {1}.".format(*version_upgrade)
|
||||||
print "This would take significant time to migrate and might break custom apps. Please run `bench update --upgrade` to confirm."
|
print "This would take significant time to migrate and might break custom apps. Please run `bench update --upgrade` to confirm."
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
else:
|
elif not version_upgrade and upgrade:
|
||||||
upgrade = False
|
upgrade = False
|
||||||
|
|
||||||
if pull:
|
if pull:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user