From 9466d1bdce363d8e9d3836f4c3eb982617c06aa1 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 9 Jan 2022 00:20:22 +0000 Subject: hasty fix to allow failing to find packages when no deps option is passed --- src/verbs/install.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/verbs/install.py b/src/verbs/install.py index b2fdf51..f204633 100644 --- a/src/verbs/install.py +++ b/src/verbs/install.py @@ -413,9 +413,17 @@ def install(args, options, config): # this check may need to be done sooner? if util.is_root() or options["r"] != "/": to_install, location_failed = args, [] - if not options["n"]: + if options["n"]: + for dep in to_install: + dep_checksum, dep_sources, dep_repo, size, files = find_package(dep, config["repos"], config["dir"]["packages"], config["sources"]) + if dep_checksum is None: + to_install.remove(dep) + location_failed.append(dep) + + else: to_install, location_failed = find_all_dependencies(args, options, config) + if len(location_failed) > 0: print(colors.LIGHT_RED + "Failed to locate the following packages:") print(end="\t") -- cgit v1.2.1