Fix purging of packages

A small error in the reuse of a variable caused packages to never get
purged. This commit fixes that.

Signed-off-by: martin f. krafft <madduck@madduck.net>
pull/3266/merge
martin f. krafft 12 years ago committed by Michael DeHaan
parent 6d6df1959c
commit 6a7dac6176

@ -209,9 +209,10 @@ def remove(m, pkgspec, cache, purge=False):
if len(packages) == 0:
m.exit_json(changed=False)
else:
purge = ''
if purge:
purge = '--purge'
else:
purge = ''
cmd = "%s -q -y %s remove %s" % (APT_GET_CMD, purge,packages)
if m.check_mode:

Loading…
Cancel
Save