* Fix --buildpkgonly logic to avoid an unwanted code path.
authorZac Medico <zmedico@gentoo.org>
Mon, 5 May 2008 05:07:35 +0000 (05:07 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 5 May 2008 05:07:35 +0000 (05:07 -0000)
* Remove unnecessary mtimedb.pop("resume", None) call.

svn path=/main/trunk/; revision=10194

pym/_emerge/__init__.py

index 3c45d684a4d5508f9670c3535627fbbc7e2af204..378b4e21d0e1f76547050f51dc547c1527ad5581 100644 (file)
@@ -8149,8 +8149,7 @@ def action_build(settings, trees, mtimedb,
                        retval = mergetask.merge(pkglist, favorites, mtimedb)
                        merge_count = mergetask.curval
 
-               if retval == os.EX_OK and not (pretend or fetchonly):
-                       mtimedb.pop("resume", None)
+               if retval == os.EX_OK and not (buildpkgonly or fetchonly or pretend):
                        if "yes" == settings.get("AUTOCLEAN"):
                                portage.writemsg_stdout(">>> Auto-cleaning packages...\n")
                                unmerge(trees[settings["ROOT"]]["root_config"],