2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

[minor] fix message and node requirement condition

This commit is contained in:
Anand Doshi 2015-08-17 12:28:11 +05:30
parent e23a2fb389
commit c79f290a76
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ def _update(pull=False, patch=False, build=False, bench=False, auto=False, resta
if version_upgrade and not upgrade:
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
# print "You can also pin your bench to {0} by running `bench swtich-to-v{0}`".format(version_upgrade[0])

View File

@ -508,7 +508,7 @@ def pre_upgrade(from_ver, to_ver, bench='.'):
if os.path.exists(cwd):
exec_cmd("git clean -dxf", cwd=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'):
raise Exception("Please install node and npm")