summaryrefslogtreecommitdiff
path: root/src/verbs/sync.py
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-11-20 17:24:42 +0000
committerdavidovski <david@davidovski.xyz>2021-11-20 17:24:42 +0000
commit8104e8fdb0821331972d4016189e71ea1606a6ef (patch)
tree50fe8a911a02d1e182e4c87905c8cf632b0b7c84 /src/verbs/sync.py
parentbd8d23136d343e1465e0222f6030fea1cbd4cbf3 (diff)
added dependency resolving
Diffstat (limited to 'src/verbs/sync.py')
-rw-r--r--src/verbs/sync.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/verbs/sync.py b/src/verbs/sync.py
index bd828ef..c534f4d 100644
--- a/src/verbs/sync.py
+++ b/src/verbs/sync.py
@@ -24,6 +24,7 @@ def sync_packages(repo, sources, verbose=False):
listed = list_packages(url + repo if url[-1] == "/" else f"/{repo}")
if len(listed) == 0 and verbose:
print(colors.BG_RED + f"No packages found in {source}/{repo}" + colors.RESET)
+
total += len(listed)
for p in listed:
if not p in packages:
@@ -67,6 +68,7 @@ def save_package_list(validated, location):
with open(package_file, "w") as file:
file.write("checksum=" + info["checksum"] + "\n")
file.write("sources=" + " ".join([source for source in info["sources"]]))
+ file.write("deps=" + " ".join([source for source in info["sources"]]))
###### !!! #######