[entropy.tools] add dep_getcat function

This commit is contained in:
Fabio Erculiani
2010-01-29 08:51:18 +01:00
parent b5a4d3f697
commit cd3ccffb8a
+5
View File
@@ -1690,6 +1690,11 @@ def dep_getkey(mydepx):
return mydep
def dep_getcat(mydep):
"""
Extract package category from dependency.
"""
return dep_getkey().split("/")[0]
def dep_getcpv(mydep):
"""