summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-02 18:52:44 +0000
committerdavidovski <david@davidovski.xyz>2022-01-02 18:52:44 +0000
commit8ced2d5ec3fe54477704434ffd45ab2a431efc5e (patch)
treef8837ce0f15bff8b3f9cf59cb7e9e423aef3beeb
parent15924240bee27f17a65e77dd56cdfb91404bc9b1 (diff)
fixed leftover key import
-rw-r--r--src/verbs/sync.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/verbs/sync.py b/src/verbs/sync.py
index 13093c5..598aa3d 100644
--- a/src/verbs/sync.py
+++ b/src/verbs/sync.py
@@ -151,23 +151,6 @@ def sync(args, options, config):
if new > 0:
util.fill_line(f"There are {new} new updates", colors.LIGHT_GREEN)
-
- if "key_authority" in config:
- imported = 0
- authorities = config["key_authority"]
- for authority in authorities:
- if authority in sources:
- url = sources[authority]
- imported += import_key(authority, url, config, verbose=v)
- elif v:
- print(colors.RED + f"Cannot find authority {authority} in sources")
- if imported > 0: print(colors.CYAN + f"Imported keys from {imported} sources")
- #total = len(sources)
- #completed = 0
- #for source, url in sources:
- #compelted += 1
- #util.loading_bar(completed, total, f"Importing keys")
-
def import_key(name, url, config, verbose=False, root="/"):
keychain_dir = util.add_path(root, config["dir"]["keychain"])
util.mkdir(keychain_dir)