Make Atom.with_repo() allow wildcard.
authorZac Medico <zmedico@gentoo.org>
Sun, 3 Oct 2010 00:32:34 +0000 (17:32 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 6 Oct 2010 22:49:33 +0000 (15:49 -0700)
pym/portage/dep/__init__.py

index db66f02a20fff600a7cd497b8dbcfbfbe1f1b9f8..3d7c554c4c4631f7f5f6af37d1079e9569a481c3 100644 (file)
@@ -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",