Deprecate spawnebuild() with returnpid.
authorZac Medico <zmedico@gentoo.org>
Fri, 1 Oct 2010 01:21:56 +0000 (18:21 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 1 Oct 2010 01:21:56 +0000 (18:21 -0700)
pym/portage/package/ebuild/doebuild.py

index d39ce922ff10e2dd28f0d02c445f909e5924bf00..eea337eb5190da7978eaf90f858b785e95639bd2 100644 (file)
@@ -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