saltstack/salt — pull request #5503 by terminalmage (2013-06-12 18:59:36+00:00)
Title: Allow pkg.purged to purge partially removed packages

This commit fixes #4972 by adding a check in apt.py for packages that were removed but not purged, thus allowing the **pkg.purge** execution function and the **pkg.purged** state to purge partially-removed packages.