mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
apt: fix mark when no packages (#37835)
This commit is contained in:
parent
270e799cb6
commit
687f3bbef3
1 changed files with 3 additions and 0 deletions
|
@ -471,6 +471,9 @@ def parse_diff(output):
|
|||
|
||||
|
||||
def mark_installed_manually(m, packages):
|
||||
if not packages:
|
||||
return
|
||||
|
||||
apt_mark_cmd_path = m.get_bin_path("apt-mark", required=True)
|
||||
cmd = "%s manual %s" % (apt_mark_cmd_path, ' '.join(packages))
|
||||
rc, out, err = m.run_command(cmd)
|
||||
|
|
Loading…
Reference in a new issue