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

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