From 376f2e04fe5318234acdd7e020fea8f68d0645a6 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 5 Jun 2011 18:30:35 -0400 Subject: [PATCH] gentoolkit.find_packages(x) has moved to gentoolkit.query.Query(x).find() Here's a history from looking through the gentoolkit logs: commit 2f90a4b9ceff920f793541376da21d313af083d9 Date: Tue Mar 9 16:42:04 2010 +0000 gentoolkit.helpers.find_packages deprecated find_* moved to Query('portage').find_*() commit 1ddc073811b7b69aab22cd65990bbca8e7104bef Date: Fri Mar 12 21:44:29 2010 +0000 Query.find_packages() moved to Query.find() --- g_pypi/portage_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/g_pypi/portage_utils.py b/g_pypi/portage_utils.py index 2ad5dc8..94b09b7 100644 --- a/g_pypi/portage_utils.py +++ b/g_pypi/portage_utils.py @@ -28,6 +28,7 @@ except ImportError: sys.path.insert(0, "/usr/lib/gentoolkit/pym") import gentoolkit +import gentoolkit.query __docformat__ = 'restructuredtext' @@ -103,7 +104,7 @@ def ebuild_exists(cat_pkg): @returns: True if ebuild exists, False if no ebuild exists """ - pkgs = gentoolkit.find_packages(cat_pkg) + pkgs = gentoolkit.query.Query(cat_pkg).find() if len(pkgs): return True else: -- 2.26.2