fix!: don't force all dependencies to be reinstalled

When you reinstall app forcefully all dependencies will also get
forcefully reinstalled. This IMO isn't required in most cases and can
even be breaking.

Anyway if required those apps can be manually force installed.
This commit is contained in:
Ankush Menat 2023-08-23 18:05:10 +05:30
parent 31bdb209ed
commit e4a6016f83

View file

@ -265,7 +265,7 @@ def install_app(name, verbose=False, set_as_patched=True, force=False):
if app_hooks.required_apps:
for app in app_hooks.required_apps:
required_app = parse_app_name(app)
install_app(required_app, verbose=verbose, force=force)
install_app(required_app, verbose=verbose)
frappe.flags.in_install = name
frappe.clear_cache()