mirror of
https://github.com/frappe/bench.git
synced 2024-11-13 16:56:33 +00:00
remove shopping cart with new cli
This commit is contained in:
parent
c24a904ad6
commit
17c91f851d
@ -1,4 +1,4 @@
|
|||||||
from .utils import exec_cmd, get_frappe
|
from .utils import exec_cmd, get_frappe, run_frappe_cmd
|
||||||
from .release import get_current_version
|
from .release import get_current_version
|
||||||
from .app import remove_from_appstxt
|
from .app import remove_from_appstxt
|
||||||
import os
|
import os
|
||||||
@ -8,7 +8,6 @@ import sys
|
|||||||
repos = ('frappe', 'erpnext')
|
repos = ('frappe', 'erpnext')
|
||||||
|
|
||||||
def migrate_to_v5(bench='.'):
|
def migrate_to_v5(bench='.'):
|
||||||
from .cli import restart_update
|
|
||||||
validate_v4(bench=bench)
|
validate_v4(bench=bench)
|
||||||
for repo in repos:
|
for repo in repos:
|
||||||
checkout_v5(repo, bench=bench)
|
checkout_v5(repo, bench=bench)
|
||||||
@ -22,9 +21,7 @@ def remove_shopping_cart(bench='.'):
|
|||||||
if not os.path.exists(shopping_cart_dir):
|
if not os.path.exists(shopping_cart_dir):
|
||||||
return
|
return
|
||||||
|
|
||||||
exec_cmd("{frappe} all --remove_from_installed_apps shopping_cart".format(
|
run_frappe_cmd('--site', 'all', 'remove-from-installed-apps', 'shopping_cart', bench=bench)
|
||||||
frappe=get_frappe(bench=bench)),
|
|
||||||
cwd=os.path.join(bench, 'sites'))
|
|
||||||
remove_from_appstxt('shopping_cart', bench=bench)
|
remove_from_appstxt('shopping_cart', bench=bench)
|
||||||
exec_cmd("{pip} --no-input uninstall -y shopping_cart".format(pip=os.path.join(bench, 'env', 'bin', 'pip')))
|
exec_cmd("{pip} --no-input uninstall -y shopping_cart".format(pip=os.path.join(bench, 'env', 'bin', 'pip')))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user