From: fuzzyray Date: Wed, 22 Sep 2010 21:20:46 +0000 (-0000) Subject: Merge from genscripts r440: brian.dolbec X-Git-Tag: gentoolkit-0.3.0_rc11~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bb9ebec3e5424bcbab579c0b49e9210bfcad2712;p=gentoolkit.git Merge from genscripts r440: brian.dolbec 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 --- diff --git a/pym/gentoolkit/eclean/exclude.py b/pym/gentoolkit/eclean/exclude.py index 8ffbae5..5f48cab 100644 --- a/pym/gentoolkit/eclean/exclude.py +++ b/pym/gentoolkit/eclean/exclude.py @@ -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"