EbuildMetadataPhase: tweak metadata_callback usage
authorZac Medico <zmedico@gentoo.org>
Sat, 15 Oct 2011 23:28:04 +0000 (16:28 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 15 Oct 2011 23:28:04 +0000 (16:28 -0700)
For parse-eapi-ebuild-head, we want to assign self.metadata from the
return value, for conformity with usage elsewhere.

pym/_emerge/EbuildMetadataPhase.py

index 6ef7c0010dfca8c97d5563282408d17a03570771..2fbd29eb7134b5e73d613883e2ff930d2532b2bb 100644 (file)
@@ -44,9 +44,8 @@ class EbuildMetadataPhase(SubProcess):
 
                if eapi is not None:
                        if not portage.eapi_is_supported(eapi):
-                               self.metadata = {'EAPI' : eapi}
-                               self.metadata_callback(self.cpv,
-                                       self.repo_path, self.metadata, self.ebuild_hash)
+                               self.metadata = self.metadata_callback(self.cpv,
+                                       self.repo_path, {'EAPI' : eapi}, self.ebuild_hash)
                                self._set_returncode((self.pid, os.EX_OK << 8))
                                self.wait()
                                return