EbuildFetchonly: remove unused _execute method
authorZac Medico <zmedico@gentoo.org>
Fri, 22 Oct 2010 14:07:14 +0000 (07:07 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 22 Oct 2010 14:07:14 +0000 (07:07 -0700)
pym/_emerge/EbuildFetchonly.py

index 2cb3061a3ad3d86b5fc42046eb7924592c21ee66..b8989713c155531f6f4a2f105ccb0fd71f3bdc19 100644 (file)
@@ -30,25 +30,3 @@ class EbuildFetchonly(SlotObject):
                        eerror(msg, phase="unpack", key=pkg.cpv)
 
                return rval
-
-       def _execute(self):
-               settings = self.settings
-               pkg = self.pkg
-               root_config = pkg.root_config
-               portdb = root_config.trees["porttree"].dbapi
-               ebuild_path = portdb.findname(pkg.cpv, myrepo=pkg.repo)
-               if ebuild_path is None:
-                       raise AssertionError("ebuild not found for '%s'" % pkg.cpv)
-               debug = settings.get("PORTAGE_DEBUG") == "1"
-               retval = portage.doebuild(ebuild_path, "fetch",
-                       self.settings["ROOT"], self.settings, debug=debug,
-                       listonly=self.pretend, fetchonly=1, fetchall=self.fetch_all,
-                       mydbapi=portdb, tree="porttree")
-
-               if retval != os.EX_OK:
-                       msg = "Fetch failed for '%s'" % (pkg.cpv,)
-                       eerror(msg, phase="unpack", key=pkg.cpv)
-
-               portage.elog.elog_process(self.pkg.cpv, self.settings)
-               return retval
-