summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2015-02-17 10:08:13 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-17 22:35:02 +0000
commitaa48c4ff4a50b5490a4744a169251100ee878fb7 (patch)
treed9f1ec285e9bcd1ed32772e3b31a3eafe1f79b0d /meta/lib/oe
parent876015dbaf9ae437f432fc1fa2907a15bfaae1e7 (diff)
downloadpoky-aa48c4ff4a50b5490a4744a169251100ee878fb7.tar.gz
package_manager.py: use 'purge' instead of 'remove' in case of deb
We need to use 'purge' instead of 'remove' for debian package backend when removing packages at rootfs time. This is because that 'remove' command for 'dpkg' and 'apt-get' does not remove configuration files. (From OE-Core rev: 14e8d826c4a5231ef331d8064d150737fe3ed656) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/package_manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 986ae54942..f801333e54 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -1631,10 +1631,10 @@ class DpkgPM(PackageManager):
1631 def remove(self, pkgs, with_dependencies=True): 1631 def remove(self, pkgs, with_dependencies=True):
1632 if with_dependencies: 1632 if with_dependencies:
1633 os.environ['APT_CONFIG'] = self.apt_conf_file 1633 os.environ['APT_CONFIG'] = self.apt_conf_file
1634 cmd = "%s remove %s" % (self.apt_get_cmd, ' '.join(pkgs)) 1634 cmd = "%s purge %s" % (self.apt_get_cmd, ' '.join(pkgs))
1635 else: 1635 else:
1636 cmd = "%s --admindir=%s/var/lib/dpkg --instdir=%s" \ 1636 cmd = "%s --admindir=%s/var/lib/dpkg --instdir=%s" \
1637 " -r --force-depends %s" % \ 1637 " -P --force-depends %s" % \
1638 (bb.utils.which(os.getenv('PATH'), "dpkg"), 1638 (bb.utils.which(os.getenv('PATH'), "dpkg"),
1639 self.target_rootfs, self.target_rootfs, ' '.join(pkgs)) 1639 self.target_rootfs, self.target_rootfs, ' '.join(pkgs))
1640 1640