mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-09 13:37:15 +00:00
dnf_versionlock: docs and comments for Python < 3.6 (#10984)
This commit is contained in:
parent
39291d3c60
commit
cf663c6e95
1 changed files with 1 additions and 2 deletions
|
|
@ -59,7 +59,6 @@ notes:
|
|||
far we have to work with a best guess as close as possible to the behaviour inferred from its code.
|
||||
- For most of cases where you want to lock and unlock specific versions of a package, this works fairly well.
|
||||
- Does not work with C(dnf5).
|
||||
- This module requires Python 3.6 or greater to run, which should not be a problem for most systems that use C(dnf).
|
||||
requirements:
|
||||
- dnf
|
||||
- dnf-plugin-versionlock
|
||||
|
|
@ -177,7 +176,7 @@ def match(entry, pattern):
|
|||
m = NEVRA_RE.match(entry)
|
||||
if not m:
|
||||
return False
|
||||
# indexing a match object with [] is a Python 3.6+ construct
|
||||
|
||||
for name in (
|
||||
f"{m['name']}",
|
||||
f"{m['name']}.{m['arch']}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue