From 2500888b35250af5d1add9a246134794aa6af3f8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Sep 2010 18:21:56 -0700 Subject: [PATCH] Deprecate spawnebuild() with returnpid. --- pym/portage/package/ebuild/doebuild.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py index d39ce922f..eea337eb5 100644 --- a/pym/portage/package/ebuild/doebuild.py +++ b/pym/portage/package/ebuild/doebuild.py @@ -1147,6 +1147,13 @@ def spawn(mystring, mysettings, debug=0, free=0, droppriv=0, sesandbox=0, fakero # parse actionmap to spawn ebuild with the appropriate args def spawnebuild(mydo, actionmap, mysettings, debug, alwaysdep=0, logfile=None, fd_pipes=None, returnpid=False): + + if returnpid: + warnings.warn("portage.spawnebuild() called " + \ + "with returnpid parameter enabled. This usage will " + \ + "not be supported in the future.", + DeprecationWarning, stacklevel=2) + if not returnpid and \ (alwaysdep or "noauto" not in mysettings.features): # process dependency first -- 2.26.2