mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
dnf_versionlock: docs and comments for Python < 3.6 (#10984)
This commit is contained in:
@@ -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']}",
|
||||
|
||||
Reference in New Issue
Block a user