Merge from genscripts r440: brian.dolbec
authorfuzzyray <fuzzyray@gentoo.org>
Wed, 22 Sep 2010 21:20:46 +0000 (21:20 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Wed, 22 Sep 2010 21:20:46 +0000 (21:20 -0000)
remove the noisy deprecation warning and put in a comment instead.  This
function tries the new API function parameter first anyway, so it would only
revert to internal code as a last resort.

svn path=/trunk/gentoolkit/; revision=806

pym/gentoolkit/eclean/exclude.py

index 8ffbae5b3a45cf83aea0d22e172c795ef5c3a071..5f48cab91234ebf67c8871140c7e4cfd369ddc33 100644 (file)
@@ -156,10 +156,9 @@ def cp_all(categories, portdb=portage.portdb ):
                """
                try:
                        cps = portdb.cp_all(categories)
-                       message = "Deprecation Warning: eclean.exclude.cp_all()\n" + \
-                               "New portage functionality is available " +\
-                               "Please migrate code permanently"
-                       print( warn(message), file=sys.stderr)
+                       # NOTE: the following backup code should be removed 
+                       # when all available versions of portage have the 
+                       # categories parameter in cp_all()
                except:  # new behaviour not available
                        #~ message =  "Exception: eclean.exclude.cp_all() " +\
                                #~ "new portdb.cp_all() behavior not found. using fallback code"