[OE-core] [PATCH] package_manager.py: correctly remove all dependent packages

Samuli Piippo samuli.piippo at qt.io
Tue Nov 1 13:22:38 UTC 2016


Do not use --force-depends when trying to remove all dependent packages,
as it removes only the selected package and not the dependent packages.

Signed-off-by: Samuli Piippo <samuli.piippo at qt.io>
---
 meta/lib/oe/package_manager.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 3cee973..a9d216a 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -1776,7 +1776,7 @@ class OpkgPM(OpkgDpkgPM):
 
     def remove(self, pkgs, with_dependencies=True):
         if with_dependencies:
-            cmd = "%s %s --force-depends --force-remove --force-removal-of-dependent-packages remove %s" % \
+            cmd = "%s %s --force-remove --force-removal-of-dependent-packages remove %s" % \
                 (self.opkg_cmd, self.opkg_args, ' '.join(pkgs))
         else:
             cmd = "%s %s --force-depends remove %s" % \
-- 
1.9.1




More information about the Openembedded-core mailing list