mirror of
https://github.com/frappe/bench.git
synced 2025-02-04 11:58:25 +00:00
[minor] fix message and node requirement condition
This commit is contained in:
parent
e23a2fb389
commit
c79f290a76
@ -211,7 +211,7 @@ def _update(pull=False, patch=False, build=False, bench=False, auto=False, resta
|
|||||||
if version_upgrade and not upgrade:
|
if version_upgrade and not upgrade:
|
||||||
print
|
print
|
||||||
print
|
print
|
||||||
print "This update will cause a major version change in Frappe/ERPNext from {0} to {1} (beta).".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."
|
||||||
print
|
print
|
||||||
# print "You can also pin your bench to {0} by running `bench swtich-to-v{0}`".format(version_upgrade[0])
|
# print "You can also pin your bench to {0} by running `bench swtich-to-v{0}`".format(version_upgrade[0])
|
||||||
|
@ -508,7 +508,7 @@ def pre_upgrade(from_ver, to_ver, bench='.'):
|
|||||||
if os.path.exists(cwd):
|
if os.path.exists(cwd):
|
||||||
exec_cmd("git clean -dxf", cwd=cwd)
|
exec_cmd("git clean -dxf", cwd=cwd)
|
||||||
exec_cmd("{pip} install --upgrade -e {app}".format(pip=pip, app=cwd))
|
exec_cmd("{pip} install --upgrade -e {app}".format(pip=pip, app=cwd))
|
||||||
if to_ver >= 5:
|
if to_ver >= 6:
|
||||||
if not find_executable('npm') and not find_executable('node'):
|
if not find_executable('npm') and not find_executable('node'):
|
||||||
raise Exception("Please install node and npm")
|
raise Exception("Please install node and npm")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user