From: Zac Medico Date: Fri, 1 Oct 2010 01:17:32 +0000 (-0700) Subject: Deprecate doebuild() with returnpid. X-Git-Tag: v2.2_rc89~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fa283c80bcea9692971f755e8d18416fb5e84b69;p=portage.git Deprecate doebuild() with returnpid. --- diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py index f874806a7..d39ce922f 100644 --- a/pym/portage/package/ebuild/doebuild.py +++ b/pym/portage/package/ebuild/doebuild.py @@ -422,6 +422,12 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0, writemsg("\n", noiselevel=-1) return 1 + if returnpid and mydo != 'depend': + warnings.warn("portage.doebuild() called " + \ + "with returnpid parameter enabled. This usage will " + \ + "not be supported in the future.", + DeprecationWarning, stacklevel=2) + if mydo == "fetchall": fetchall = 1 mydo = "fetch"