projects
/
g-pypi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76821ae
)
gentoolkit.find_packages(x) has moved to gentoolkit.query.Query(x).find()
author
W. Trevor King
<wking@drexel.edu>
Sun, 5 Jun 2011 22:30:35 +0000
(18:30 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Sun, 5 Jun 2011 22:30:35 +0000
(18:30 -0400)
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
patch
|
blob
|
history
diff --git
a/g_pypi/portage_utils.py
b/g_pypi/portage_utils.py
index 2ad5dc8c495e55fc275486a257c8ee8518a9371c..94b09b7e312834069458b2815f054e8cf7aea446 100644
(file)
--- 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: