From: Zac Medico Date: Fri, 1 Oct 2010 01:21:56 +0000 (-0700) Subject: Deprecate spawnebuild() with returnpid. X-Git-Tag: v2.1.9.13~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8c7a72a1f5c36050abe7f763c771fa166f9ca16a;p=portage.git Deprecate spawnebuild() with returnpid. --- 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