Add a clean_world attribute.
authorZac Medico <zmedico@gentoo.org>
Fri, 14 Aug 2009 20:29:06 +0000 (20:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 14 Aug 2009 20:29:06 +0000 (20:29 -0000)
svn path=/main/trunk/; revision=14042

pym/_emerge/PackageUninstall.py

index ff1b5e189ef4a32558c4f8c7ff992b99be8fc9df..24f08d451a9b3966a5dea74ea157dd8b88199083 100644 (file)
@@ -12,12 +12,14 @@ from _emerge.UninstallFailure import UninstallFailure
 
 class PackageUninstall(AsynchronousTask):
 
-       __slots__ = ("ldpath_mtimes", "opts", "pkg", "scheduler", "settings")
+       __slots__ = ("clean_world", "ldpath_mtimes", "opts",
+               "pkg", "scheduler", "settings")
 
        def _start(self):
                try:
                        unmerge(self.pkg.root_config, self.opts, "unmerge",
-                               [self.pkg.cpv], self.ldpath_mtimes, clean_world=0,
+                               [self.pkg.cpv], self.ldpath_mtimes,
+                               clean_world=self.clean_world,
                                clean_delay=0, raise_on_error=1, scheduler=self.scheduler,
                                writemsg_level=self._writemsg_level)
                except UninstallFailure, e: