fix set all_patches and installed_apps before running after install

This commit is contained in:
Pratik Vyas 2014-01-07 12:53:27 +05:30
parent c71bdcc7a1
commit dbc2108b0f

View file

@ -103,11 +103,12 @@ def install_app(name, verbose=False):
sync_for(name, force=True, sync_everything=True, verbose=verbose)
add_to_installed_apps(name)
set_all_patches_as_completed(name)
for after_install in app_hooks.after_install or []:
webnotes.get_attr(after_install)()
set_all_patches_as_completed(name)
add_to_installed_apps(name)
webnotes.flags.in_install_app = False