Also add "background" attributes to the EbuildBuild and Binpkg classes.
authorZac Medico <zmedico@gentoo.org>
Tue, 8 Jul 2008 01:01:54 +0000 (01:01 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 8 Jul 2008 01:01:54 +0000 (01:01 -0000)
svn path=/main/trunk/; revision=10980

pym/_emerge/__init__.py

index ba5e7841aef099326094fc8fbc5ad11eeb4718fa..350caa7b58180bae98d4a6a19a516c6c7ea1e060 100644 (file)
@@ -1938,7 +1938,7 @@ class EbuildBuildDir(SlotObject):
 
 class EbuildBuild(CompositeTask):
 
-       __slots__ = ("args_set", "find_blockers",
+       __slots__ = ("args_set", "background", "find_blockers",
                "ldpath_mtimes", "logger", "opts", "pkg", "pkg_count",
                "settings", "world_atom") + \
                ("_build_dir", "_buildpkg", "_ebuild_path", "_tree")
@@ -2432,7 +2432,7 @@ class PackageUninstall(Task):
 
 class Binpkg(CompositeTask):
 
-       __slots__ = ("find_blockers",
+       __slots__ = ("background", "find_blockers",
                "ldpath_mtimes", "logger", "opts",
                "pkg", "pkg_count", "prefetcher", "settings", "world_atom") + \
                ("_bintree", "_build_dir", "_ebuild_path", "_fetched_pkg",
@@ -2873,6 +2873,7 @@ class MergeListItem(CompositeTask):
                if pkg.type_name == "ebuild":
 
                        build = EbuildBuild(args_set=args_set,
+                               background=self.background,
                                find_blockers=find_blockers,
                                ldpath_mtimes=ldpath_mtimes, logger=logger,
                                opts=build_opts, pkg=pkg, pkg_count=pkg_count,
@@ -2885,7 +2886,8 @@ class MergeListItem(CompositeTask):
 
                elif pkg.type_name == "binary":
 
-                       binpkg = Binpkg(find_blockers=find_blockers,
+                       binpkg = Binpkg(background=self.background,
+                               find_blockers=find_blockers,
                                ldpath_mtimes=ldpath_mtimes, logger=logger,
                                opts=self.binpkg_opts, pkg=pkg, pkg_count=pkg_count,
                                prefetcher=self.prefetcher, settings=settings,