diff options
author | davidovski <david@davidovski.xyz> | 2022-01-02 18:52:44 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-01-02 18:52:44 +0000 |
commit | 8ced2d5ec3fe54477704434ffd45ab2a431efc5e (patch) | |
tree | f8837ce0f15bff8b3f9cf59cb7e9e423aef3beeb /src | |
parent | 15924240bee27f17a65e77dd56cdfb91404bc9b1 (diff) |
fixed leftover key import
Diffstat (limited to 'src')
-rw-r--r-- | src/verbs/sync.py | 17 |
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) |