2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-13 16:56:33 +00:00

Include excluded app in bench update

command bench bench include-app <app-name>
This commit is contained in:
shridhar 2017-12-12 18:15:41 +05:30 committed by Shridhar
parent 4e3d7e989e
commit 7013167d8d
2 changed files with 3 additions and 3 deletions

View File

@ -80,15 +80,12 @@ def write_excluded_appstxt(apps, bench_path='.'):
with open(os.path.join(bench_path, 'sites', 'excluded_apps.txt'), 'w') as f:
return f.write('\n'.join(apps))
<<<<<<< e856c4a77a8418b492aaa395b9dffb6f96b78c94
def remove_from_exclided_appsstxt(app, bench_path='.'):
apps = get_apps(bench_path=bench_path)
if app in apps:
apps.remove(app)
return write_excluded_appstxt(apps, bench_path=bench_path)
=======
>>>>>>> New command to exclude apps when bench update
def get_app(git_url, branch=None, bench_path='.', build_asset_files=True, verbose=False):
# from bench.utils import check_url
try:

View File

@ -191,3 +191,6 @@ bench_command.add_command(include_update)
from bench.commands.exclude_update import exclude_update
bench_command.add_command(exclude_update)
from bench.commands.exclude_update import include_update
bench_command.add_command(include_update)