summaryrefslogtreecommitdiff
path: root/src/verbs/install.py
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-09 00:20:22 +0000
committerdavidovski <david@davidovski.xyz>2022-01-09 00:20:22 +0000
commit9466d1bdce363d8e9d3836f4c3eb982617c06aa1 (patch)
tree35616b0694ed4444aa895fea960a71107d406031 /src/verbs/install.py
parent522470e4c6af96f94083c4ba7ef2ff4488458f74 (diff)
hasty fix to allow failing to find packages when no deps option is passed
Diffstat (limited to 'src/verbs/install.py')
-rw-r--r--src/verbs/install.py10
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")