diff options
author | davidovski <david@davidovski.xyz> | 2022-01-09 00:20:22 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-01-09 00:20:22 +0000 |
commit | 9466d1bdce363d8e9d3836f4c3eb982617c06aa1 (patch) | |
tree | 35616b0694ed4444aa895fea960a71107d406031 /src/verbs | |
parent | 522470e4c6af96f94083c4ba7ef2ff4488458f74 (diff) |
hasty fix to allow failing to find packages when no deps option is passed
Diffstat (limited to 'src/verbs')
-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") |