diff options
-rw-r--r-- | src/verbs/install.py | 10 |
1 files changed, 9 insertions, 1 deletions
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") |