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

[Fixes] app list fixes for version 5 switching

This commit is contained in:
saurabh 2015-09-03 11:28:34 +05:30
parent fcf8cf34b8
commit 00d607a2be

View File

@ -150,7 +150,10 @@ def switch_branch(branch, apps=None, bench='.', upgrade=False):
raise MajorVersionUpgradeException("Switching to {0} will cause upgrade from {1} to {2}. Pass --upgrade to confirm".format(branch, version_upgrade[1], version_upgrade[2]), version_upgrade[1], version_upgrade[2])
if not apps:
apps = ('frappe', 'erpnext', 'shopping_cart')
apps = ['frappe', 'erpnext']
if branch=="v4.x.x":
apps.append('shopping_cart')
for app in apps:
app_dir = os.path.join(apps_dir, app)
if os.path.exists(app_dir):