diff options
author | 2005-08-14 00:57:17 +0000 | |
---|---|---|
committer | 2005-08-14 00:57:17 +0000 | |
commit | 475470352d8c15cbfc342d9b9dfaf3f964c9af64 (patch) | |
tree | ca7942ca9c51eb6517651c91c98484b5efc62fc7 | |
parent | fixing earlier stomping of spankys ebuild*.sh work that I managed :/ (diff) | |
download | portage-cvs-475470352d8c15cbfc342d9b9dfaf3f964c9af64.tar.gz portage-cvs-475470352d8c15cbfc342d9b9dfaf3f964c9af64.tar.bz2 portage-cvs-475470352d8c15cbfc342d9b9dfaf3f964c9af64.zip |
restriction_set fix, and made old __str__ code active as atom_str
-rw-r--r-- | portage/package/atom.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/portage/package/atom.py b/portage/package/atom.py index 5e5c65f..eff9594 100644 --- a/portage/package/atom.py +++ b/portage/package/atom.py @@ -1,11 +1,11 @@ # Copyright: 2005 Gentoo Foundation # Author(s): Jason Stubbs (jstubbs@gentoo.org), Brian Harring (ferringb@gentoo.org) # License: GPL2 -# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/portage/package/atom.py,v 1.8 2005/08/09 07:58:58 ferringb Exp $ +# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/portage/package/atom.py,v 1.9 2005/08/14 00:57:17 ferringb Exp $ from portage.restrictions import restriction from cpv import ver_cmp, CPV -from portage.restrictions.restrictionSet import AndRestrictionSet +from portage.restrictions.restriction_set import AndRestrictionSet from portage.util.lists import unique class MalformedAtom(Exception): @@ -197,11 +197,11 @@ class atom(AndRestrictionSet): raise AttributeError(attr) -# def __str__(self): -# s=self.op+self.category+"/"+self.package -# if self.version: s+="-"+self.fullver -# if self.glob: s+="*" -# return s + def atom_str(self): + s=self.op+self.category+"/"+self.package + if self.version: s+="-"+self.fullver + if self.glob: s+="*" + return s def __iter__(self): return iter(self.restrictions) |