apt: fix mark when no packages (#37835)

This commit is contained in:
Martin Krizek
2018-03-23 15:06:03 +01:00
committed by GitHub
parent 270e799cb6
commit 687f3bbef3

View File

@@ -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)