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:
parent
fcf8cf34b8
commit
00d607a2be
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user