Branch: refs/heads/master
Home: https://github.com/openSUSE/osc
Commit: 3262c05e35c01e0ac039920abfa3a52603a3437b
https://github.com/openSUSE/osc/commit/3262c05e35c01e0ac039920abfa3a52603a34...
Author: Marcus Huewe
Date: 2022-04-14 (Thu, 14 Apr 2022)
Changed paths:
M osc/credentials.py
Log Message:
-----------
Handle a callable in credentials._LazyPassword.__str__
It is possible that the self._pwfunc() call returns a callable. For
instance, if the keyutils.osc.OscKernelKeyringBackend is configured
in the oscrc. Hence, check in credentials._LazyPassword.__str__
if the returned password is a callable and, if so, call it. Moreover,
a deprecation warning is printed. Eventually, this compat code will
be removed again.
This is a follow-up commit for commit
784d330f202c6e53d5adaeb1b48f93ef1a2e0ad6 ("Only prompt for a password
if the server asks for it") (actually, it is a regression that was
not caught during the review...).
Commit: bc9869bdc27b365a86ab09cc7d1748f2849d4eb7
https://github.com/openSUSE/osc/commit/bc9869bdc27b365a86ab09cc7d1748f2849d4...
Author: Marco Strigl
Date: 2022-04-14 (Thu, 14 Apr 2022)
Changed paths:
M osc/credentials.py
Log Message:
-----------
Merge pull request #1028 from marcus-h/lazy_password_callable_fix
Handle a callable in credentials._LazyPassword.__str__
Compare: https://github.com/openSUSE/osc/compare/ff45f107bb23...bc9869bdc27b