1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-28 21:22:14 +01:00
Improve keyring installation hint if no keyring module is present. Now,
it suggests to install "python<major version>-keyring" instead of
"python-keyring".
This commit is contained in:
Marcus Huewe 2020-03-01 18:03:19 +01:00
commit eb88abc138

View File

@ -1018,7 +1018,7 @@ def interactive_config_setup(conffile, apiurl, initial=True):
def select_credentials_manager_descr():
if not credentials.has_keyring_support():
print('To use keyrings please install python-keyring.')
print('To use keyrings please install python%d-keyring.' % sys.version_info.major)
creds_mgr_descriptors = credentials.get_credentials_manager_descriptors()
for i, creds_mgr_descr in enumerate(creds_mgr_descriptors, 1):
print('%d) %s (%s)' % (i, creds_mgr_descr.name(), creds_mgr_descr.description()))#