summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-02 17:32:34 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-06 15:49:33 -0700
commit30449b96a7b4e7a709858923c479b9aff6968fa7 (patch)
tree4532be49517cbfb52f60763c87550814945b90b1
parent8e89fe946091ef53b4a24d30ee071960ff3c05a5 (diff)
downloadportage-30449b96a7b4e7a709858923c479b9aff6968fa7.tar.gz
portage-30449b96a7b4e7a709858923c479b9aff6968fa7.tar.bz2
portage-30449b96a7b4e7a709858923c479b9aff6968fa7.zip
Make Atom.with_repo() allow wildcard.
-rw-r--r--pym/portage/dep/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/dep/__init__.py b/pym/portage/dep/__init__.py
index db66f02a2..3d7c554c4 100644
--- a/pym/portage/dep/__init__.py
+++ b/pym/portage/dep/__init__.py
@@ -1116,7 +1116,8 @@ class Atom(_atom_base):
def without_repo(self):
if self.repo is None:
return self
- return Atom(self.replace(_repo_separator + self.repo, '', 1))
+ return Atom(self.replace(_repo_separator + self.repo, '', 1),
+ allow_wildcard=True)
def __setattr__(self, name, value):
raise AttributeError("Atom instances are immutable",