public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/portage:master commit in: lib/portage/package/ebuild/_parallel_manifest/
@ 2020-07-23  6:57 Zac Medico
  0 siblings, 0 replies; 2+ messages in thread
From: Zac Medico @ 2020-07-23  6:57 UTC (permalink / raw
  To: gentoo-commits

commit:     2cc4dd4f73b07e8c1fa99cfc84c0f713d56854af
Author:     Alec Warner <antarus <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 23 06:16:01 2020 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu Jul 23 06:56:10 2020 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=2cc4dd4f

Fix extra file.

This file had 2 extra newlines, so was missed in the earlier commit.

Signed-off-by: Alec Warner <antarus <AT> gentoo.org>
Change-Id: Idd613c618b9411f01bf0ab5d488079131988f311
Closes: https://github.com/gentoo/portage/pull/586
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 lib/portage/package/ebuild/_parallel_manifest/ManifestScheduler.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/portage/package/ebuild/_parallel_manifest/ManifestScheduler.py b/lib/portage/package/ebuild/_parallel_manifest/ManifestScheduler.py
index aca42c1e1..2ac736bc6 100644
--- a/lib/portage/package/ebuild/_parallel_manifest/ManifestScheduler.py
+++ b/lib/portage/package/ebuild/_parallel_manifest/ManifestScheduler.py
@@ -84,4 +84,3 @@ class ManifestScheduler(AsyncScheduler):
 					noiselevel=-1)
 
 		AsyncScheduler._task_exit(self, task)
-


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] proj/portage:master commit in: lib/portage/package/ebuild/_parallel_manifest/
@ 2023-10-05  5:05 Zac Medico
  0 siblings, 0 replies; 2+ messages in thread
From: Zac Medico @ 2023-10-05  5:05 UTC (permalink / raw
  To: gentoo-commits

commit:     07dbfbdf0504387fe96f865440550b720245f0bb
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  5 04:36:43 2023 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu Oct  5 04:37:06 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=07dbfbdf

ManifestProcess: Migrate to ForkProcess target parameter

Bug: https://bugs.gentoo.org/915099
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 .../ebuild/_parallel_manifest/ManifestProcess.py   | 28 +++++++++++++++++-----
 1 file changed, 22 insertions(+), 6 deletions(-)

diff --git a/lib/portage/package/ebuild/_parallel_manifest/ManifestProcess.py b/lib/portage/package/ebuild/_parallel_manifest/ManifestProcess.py
index f1a30670b4..ec2d5bdfc2 100644
--- a/lib/portage/package/ebuild/_parallel_manifest/ManifestProcess.py
+++ b/lib/portage/package/ebuild/_parallel_manifest/ManifestProcess.py
@@ -1,6 +1,8 @@
-# Copyright 2012 Gentoo Foundation
+# Copyright 2012-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
+import functools
+
 import portage
 from portage import os
 from portage.exception import FileNotFound, PermissionDenied, PortagePackageException
@@ -13,11 +15,25 @@ class ManifestProcess(ForkProcess):
 
     MODIFIED = 16
 
-    def _run(self):
-        mf = self.repo_config.load_manifest(
-            os.path.join(self.repo_config.location, self.cp),
+    def _start(self):
+        self.target = functools.partial(
+            self._target,
+            self.cp,
             self.distdir,
-            fetchlist_dict=self.fetchlist_dict,
+            self.fetchlist_dict,
+            self.repo_config,
+        )
+        super()._start()
+
+    @staticmethod
+    def _target(cp, distdir, fetchlist_dict, repo_config):
+        """
+        TODO: Make all arguments picklable for the multiprocessing spawn start method.
+        """
+        mf = repo_config.load_manifest(
+            os.path.join(repo_config.location, cp),
+            distdir,
+            fetchlist_dict=fetchlist_dict,
         )
 
         try:
@@ -43,5 +59,5 @@ class ManifestProcess(ForkProcess):
             return 1
         else:
             if modified:
-                return self.MODIFIED
+                return ManifestProcess.MODIFIED
             return os.EX_OK


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-05  5:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-05  5:05 [gentoo-commits] proj/portage:master commit in: lib/portage/package/ebuild/_parallel_manifest/ Zac Medico
  -- strict thread matches above, loose matches on Subject: below --
2020-07-23  6:57 Zac Medico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox