Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package opi for openSUSE:Factory checked in at 2026-10-21 21:00:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/opi (Old) and /work/SRC/openSUSE:Factory/.opi.new.2252680 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "opi" Wed Oct 21 21:00:53 2026 rev:83 rq:1386764 version:5.17.0 Changes: -------- --- /work/SRC/openSUSE:Factory/opi/opi.changes 2026-09-09 16:23:47.001616790 +0200 +++ /work/SRC/openSUSE:Factory/.opi.new.2252680/opi.changes 2026-10-21 21:02:31.171668506 +0200 @@ -1,0 +2,6 @@ +Wed Oct 21 09:20:21 UTC 2026 - Dominik Heidler <[email protected]> + +- Version 5.17.0 + * Fetch file:// and $releasever gpgkeys correctly when asking to keep a key (#227) + +------------------------------------------------------------------- Old: ---- opi-5.16.0.tar.gz New: ---- opi-5.17.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ opi.spec ++++++ --- /var/tmp/diff_new_pack.PLhHeN/_old 2026-10-21 21:02:31.967702958 +0200 +++ /var/tmp/diff_new_pack.PLhHeN/_new 2026-10-21 21:02:31.969703044 +0200 @@ -20,7 +20,7 @@ %define pythons %{use_python} Name: opi -Version: 5.16.0 +Version: 5.17.0 Release: 0 Summary: OBS Package Installer (CLI) License: GPL-3.0-only ++++++ opi-5.16.0.tar.gz -> opi-5.17.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/opi-5.16.0/.editorconfig new/opi-5.17.0/.editorconfig --- old/opi-5.16.0/.editorconfig 1970-01-01 01:00:00.000000000 +0100 +++ new/opi-5.17.0/.editorconfig 2026-10-21 11:20:04.000000000 +0200 @@ -0,0 +1,12 @@ +# Top-most EditorConfig file +root = true + +# Apply tab indentation to all files by default +[*] +indent_style = tab +indent_size = 4 +tab_width = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/opi-5.16.0/opi/__init__.py new/opi-5.17.0/opi/__init__.py --- old/opi-5.16.0/opi/__init__.py 2026-09-09 11:20:06.000000000 +0200 +++ new/opi-5.17.0/opi/__init__.py 2026-10-21 11:20:04.000000000 +0200 @@ -664,11 +664,16 @@ else: return options[num - 1] -def ask_import_key(keyurl): +def fetch_keys(keyurl): + """ Return the contents of a gpgkey url (http(s):// or file://) with all supported vars expanded """ + keyurl = expand_vars(keyurl) if keyurl.startswith('file://'): - keys = open(expand_vars(keyurl[7:])).read() - else: - keys = requests.get(expand_vars(keyurl)).text + with open(keyurl[7:]) as f: + return f.read() + return requests.get(keyurl).text + +def ask_import_key(keyurl): + keys = fetch_keys(keyurl) db_keys = get_keys_from_rpmdb() 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'): @@ -691,7 +696,7 @@ Ask to remove the key given by url to key file. Warns about all repos still using the key except the repo given by repo_alias param. """ - urlkeys = split_keys(requests.get(expand_vars(keyurl)).text) + urlkeys = split_keys(fetch_keys(keyurl)) urlkeys_normalized = [normalize_key(urlkey) for urlkey in urlkeys] db_keys = get_keys_from_rpmdb() keys_to_ask_user = [key for key in db_keys if key['pubkey'] in urlkeys_normalized] @@ -701,7 +706,7 @@ if repo_alias and repo.filename == repo_alias: continue if repo.gpgkey: - repokey = normalize_key(requests.get(repo.gpgkey).text) + repokey = normalize_key(fetch_keys(repo.gpgkey)) if repokey == key['pubkey']: repos_using_this_key.append(repo) if repos_using_this_key: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/opi-5.16.0/opi/version.py new/opi-5.17.0/opi/version.py --- old/opi-5.16.0/opi/version.py 2026-09-09 11:20:06.000000000 +0200 +++ new/opi-5.17.0/opi/version.py 2026-10-21 11:20:04.000000000 +0200 @@ -1 +1 @@ -__version__ = '5.16.0' +__version__ = '5.17.0' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/opi-5.16.0/opi.changes new/opi-5.17.0/opi.changes --- old/opi-5.16.0/opi.changes 2026-09-09 11:20:06.000000000 +0200 +++ new/opi-5.17.0/opi.changes 2026-10-21 11:20:04.000000000 +0200 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Oct 21 09:19:56 UTC 2026 - Dominik Heidler <[email protected]> + +- Version 5.17.0 + * Fetch file:// and $releasever gpgkeys correctly when asking to keep a key (#227) + +------------------------------------------------------------------- Wed Sep 9 09:19:44 UTC 2026 - Dominik Heidler <[email protected]> - Version 5.16.0
