Skip to content

Commit

Permalink
Fix repo name encoding when asking for new key addition
Browse files Browse the repository at this point in the history
Unescape ':'
  • Loading branch information
asdil12 committed Feb 18, 2023
1 parent 5dc8797 commit 182f051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def ask_import_key(keyurl):
for key in split_keys(keys):
for line in subprocess.check_output(["gpg", "--quiet", "--show-keys", "--with-colons", "-"], input=key.encode()).decode().strip().split("\n"):
if line.startswith("uid:"):
key_info = line.split(':')[9]
key_info = line.split(':')[9].replace('\\x3a', ':')
if [db_key for db_key in get_keys_from_rpmdb() if normalize_key(key) in normalize_key(db_key['pubkey'])]:
print(f"Package signing key '{key_info}' is already present.")
else:
Expand Down

0 comments on commit 182f051

Please sign in to comment.