mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix too much quoting in apt.version_cmp
This refs #24397 Signed-off-by: Mathieu Le Marec - Pasquet <kiorky@cryptelium.net>
This commit is contained in:
parent
3ca35d1ec3
commit
953725a563
1 changed files with 2 additions and 2 deletions
|
@ -1119,8 +1119,8 @@ def version_cmp(pkg1, pkg2):
|
|||
'''
|
||||
try:
|
||||
for oper, ret in (('lt', -1), ('eq', 0), ('gt', 1)):
|
||||
cmd = 'dpkg --compare-versions {0!r} {1} ' \
|
||||
'{2!r}'.format(_cmd_quote(pkg1), oper, _cmd_quote(pkg2))
|
||||
cmd = 'dpkg --compare-versions {0} {1} ' \
|
||||
'{2}'.format(_cmd_quote(pkg1), oper, _cmd_quote(pkg2))
|
||||
retcode = __salt__['cmd.retcode'](
|
||||
cmd, output_loglevel='trace', ignore_retcode=True
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue