From: Zac Medico Date: Fri, 1 Oct 2010 01:17:32 +0000 (-0700) Subject: Deprecate doebuild() with returnpid. X-Git-Tag: v2.1.9.13~6 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=016a22bdc46f9c0193389ed89a8772a79afdb0c8;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"