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