apt: fix mark when no packages (#37835)

pull/37559/head
Martin Krizek 7 years ago committed by GitHub
parent 270e799cb6
commit 687f3bbef3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -471,6 +471,9 @@ def parse_diff(output):
def mark_installed_manually(m, packages): def mark_installed_manually(m, packages):
if not packages:
return
apt_mark_cmd_path = m.get_bin_path("apt-mark", required=True) apt_mark_cmd_path = m.get_bin_path("apt-mark", required=True)
cmd = "%s manual %s" % (apt_mark_cmd_path, ' '.join(packages)) cmd = "%s manual %s" % (apt_mark_cmd_path, ' '.join(packages))
rc, out, err = m.run_command(cmd) rc, out, err = m.run_command(cmd)

Loading…
Cancel
Save