From 8ced2d5ec3fe54477704434ffd45ab2a431efc5e Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 2 Jan 2022 18:52:44 +0000 Subject: fixed leftover key import --- src/verbs/sync.py | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src') 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) -- cgit v1.2.1