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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)