mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update salt/modules/yumpkg.py
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
This commit is contained in:
parent
c81c7b3f70
commit
6a256a59a1
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ def _get_hold(line, pattern=__HOLD_PATTERN, full=True):
|
|||
dnf ==> vim-enhanced-2:7.4.827-1.fc22.*
|
||||
"""
|
||||
if full:
|
||||
if _yum() == "dnf" or _yum() == "dnf5":
|
||||
if _yum() in ("dnf", "dnf5"):
|
||||
lock_re = rf"({pattern}-\S+)"
|
||||
else:
|
||||
lock_re = rf"(\d+:{pattern}-\S+)"
|
||||
|
|
Loading…
Add table
Reference in a new issue