You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
martin f. krafft 3d1db80fe0 Introduce non-purged package status
A package may be removed but not purged with APT. The only way to
identify this state is by looking at the list of installed files of
a package. Even if the package has no files installed, this list will be
non-empty until the package is removed:

  # python -c "import apt; c=apt.Cache(); c.update(); c.open(); p=c['ruby1.8']; print p, p.installed, p.installed_files"
  <Package: name:'ruby1.8' id:1425> None [u'']

  # dpkg --purge ruby1.8
  (Reading database ... 27904 files and directories currently installed.)
  Removing ruby1.8 ...
  Purging configuration files for ruby1.8 ...

  # python -c "import apt; c=apt.Cache(); c.update(); c.open(); p=c['ruby1.8']; print p, p.installed, p.installed_files"
  <Package: name:'ruby1.8' id:1425> None []

See http://bugs.debian.org/712749 too.

If a package is not marked installed but it still 'has_files', then it
should be processed if the request is to purge it.

Signed-off-by: martin f. krafft <madduck@madduck.net>
12 years ago
cloud Merge pull request #3236 from lwade/ec2_placementzone 12 years ago
commands Docs: consistently format playbook EXAMPLES 12 years ago
database Docs: consistently format playbook EXAMPLES 12 years ago
files Merge branch 'file_hard' of git://github.com/bcoca/ansible into devel 12 years ago
internal Allow modules to be categorized, and also sort them when generating the documentation. 12 years ago
inventory Docs: consistently format playbook EXAMPLES 12 years ago
messaging Docs: consistently format playbook EXAMPLES 12 years ago
monitoring Merge pull request #3219 from arturaz/devel 12 years ago
net_infrastructure DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition) 12 years ago
network Removed merge conflict header 12 years ago
notification Fixed a few small typos 12 years ago
packaging Introduce non-purged package status 12 years ago
source_control DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition) 12 years ago
system Merge pull request #3147 from toshywoshy/setup_mtab_without_bind 12 years ago
utilities Docs: consistently format playbook EXAMPLES 12 years ago
web_infrastructure adds 2 django commands (migrate, collectstatic) 12 years ago