diff --git a/frappe/installer.py b/frappe/installer.py index 149565daf9..3d42a70923 100755 --- a/frappe/installer.py +++ b/frappe/installer.py @@ -147,7 +147,8 @@ def remove_from_installed_apps(app_name): installed_apps.remove(app_name) frappe.db.set_global("installed_apps", json.dumps(installed_apps)) frappe.db.commit() - post_install() + if frappe.flags.in_install: + post_install() def post_install(rebuild_website=False): if rebuild_website: diff --git a/frappe/patches.txt b/frappe/patches.txt index c7fb9ade39..19e12f0f50 100644 --- a/frappe/patches.txt +++ b/frappe/patches.txt @@ -13,6 +13,7 @@ execute:frappe.db.sql("delete from `tabDocField` where parent='0'") frappe.patches.v4_0.change_varchar_length frappe.patches.v5_0.v4_to_v5 +frappe.patches.v5_0.remove_shopping_cart_app frappe.patches.v4_0.webnotes_to_frappe execute:frappe.permissions.reset_perms("Module Def") execute:import frappe.installer;frappe.installer.make_site_dirs() #2014-02-19 diff --git a/frappe/patches/v5_0/remove_shopping_cart_app.py b/frappe/patches/v5_0/remove_shopping_cart_app.py new file mode 100644 index 0000000000..babde585a1 --- /dev/null +++ b/frappe/patches/v5_0/remove_shopping_cart_app.py @@ -0,0 +1,7 @@ +# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors +# License: GNU General Public License v3. See license.txt +from __future__ import unicode_literals + +def execute(): + from frappe.installer import remove_from_installed_apps + remove_from_installed_apps("shopping_cart")