Skip to content

Commit 76b0788

Browse files
committed
install-eaf: simplify --force-install to --force
Signed-off-by: Mingde (Matthew) Zeng <matthewzmd@posteo.net>
1 parent d2991f4 commit 76b0788

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install-eaf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
help='only install/update apps listed here')
1919
parser.add_argument("--install-new-apps", action="store_true",
2020
help='also install previously uninstalled or new applications')
21-
parser.add_argument("--force-install", action="store_true",
21+
parser.add_argument("--force", action="store_true",
2222
help="force install/update app dependencies even if apps are already up-to-date")
2323
parser.add_argument("--ignore-core-deps", action="store_true",
2424
help='ignore core dependencies')
@@ -305,7 +305,7 @@ def install_app_deps(distro, deps_dict):
305305
updated = add_or_update_app(app_name, app_spec_dict)
306306
app_path = os.path.join(app_dir, app_name)
307307
app_dep_path = os.path.join(app_path, 'dependencies.json')
308-
if (updated or args.force_install) and os.path.exists(app_dep_path):
308+
if (updated or args.force) and os.path.exists(app_dep_path):
309309
with open(os.path.join(app_dep_path)) as f:
310310
deps_dict = json.load(f)
311311
if not args.ignore_sys_deps and sys.platform == "linux" and distro in deps_dict:
@@ -328,7 +328,7 @@ def install_app_deps(distro, deps_dict):
328328
print("[EAF] Installing python dependencies")
329329
install_py_deps(py_deps)
330330
if not args.ignore_node_deps:
331-
if args.force_install:
331+
if args.force:
332332
if len(npm_install_apps) > 0:
333333
remove_node_modules_path(npm_install_apps)
334334
if len(vue_install_apps) > 0:

0 commit comments

Comments
 (0)