summaryrefslogtreecommitdiffstats
path: root/pym/portage
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2012-12-23 06:32:24 +0100
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2012-12-23 06:32:24 +0100
commitb4440ce6a87d7c6932132185697dd3c4888d752c (patch)
tree5dec2ced04316fe22b8949cca70168b01546316a /pym/portage
parent8e8d1789b96f668d1738d6444e86529ade63dc10 (diff)
downloadportage-b4440ce6a87d7c6932132185697dd3c4888d752c.tar.gz
portage-b4440ce6a87d7c6932132185697dd3c4888d752c.tar.bz2
portage-b4440ce6a87d7c6932132185697dd3c4888d752c.zip
Support subslots in command line arguments.
Diffstat (limited to 'pym/portage')
-rw-r--r--pym/portage/dbapi/dep_expand.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/dbapi/dep_expand.py b/pym/portage/dbapi/dep_expand.py
index ac8ccf4b3..bb211c739 100644
--- a/pym/portage/dbapi/dep_expand.py
+++ b/pym/portage/dbapi/dep_expand.py
@@ -1,4 +1,4 @@
-# Copyright 2010 Gentoo Foundation
+# Copyright 2010-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
__all__ = ["dep_expand"]
@@ -23,7 +23,7 @@ def dep_expand(mydep, mydb=None, use_cache=1, settings=None):
if mydep[0] == "*":
mydep = mydep[1:]
orig_dep = mydep
- has_cat = '/' in orig_dep
+ has_cat = '/' in orig_dep.split(':')[0]
if not has_cat:
alphanum = re.search(r'\w', orig_dep)
if alphanum: