Skip to content

Commit

Permalink
process.spawn: Enable returnpid warning for internals
Browse files Browse the repository at this point in the history
All internal returnpid consumers have been migrated to
use the new returnproc parameter instead.

Bug: https://bugs.gentoo.org/916566
Signed-off-by: Zac Medico <zmedico@gentoo.org>
  • Loading branch information
zmedico committed Feb 5, 2024
1 parent c112318 commit fec465c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/portage/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,12 +680,11 @@ def spawn(
# If the caller wants to handle cleaning up the processes, we tell
# it about all processes that were created.
if returnpid:
if not portage._internal_caller:
warnings.warn(
"The portage.process.spawn returnpid paramenter is deprecated and replaced by returnproc",
UserWarning,
stacklevel=1,
)
warnings.warn(
"The portage.process.spawn returnpid paramenter is deprecated and replaced by returnproc",
UserWarning,
stacklevel=1,
)
return mypids

# Otherwise we clean them up.
Expand Down

0 comments on commit fec465c

Please sign in to comment.