diff options
author | 2005-07-28 05:44:42 +0000 | |
---|---|---|
committer | 2005-07-28 05:44:42 +0000 | |
commit | 59b3b2cdba6c64e334d60137ff14af28a036c5d6 (patch) | |
tree | c5641f01512c8f8708cefd35eee8b9c69c5890d1 | |
parent | typo in StrSubstringMatch instantation) (diff) | |
download | portage-cvs-59b3b2cdba6c64e334d60137ff14af28a036c5d6.tar.gz portage-cvs-59b3b2cdba6c64e334d60137ff14af28a036c5d6.tar.bz2 portage-cvs-59b3b2cdba6c64e334d60137ff14af28a036c5d6.zip |
fix to rewrite_eclasses base
-rw-r--r-- | portage/cache/template.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/portage/cache/template.py b/portage/cache/template.py index 8b30e5f..6d087e5 100644 --- a/portage/cache/template.py +++ b/portage/cache/template.py @@ -1,7 +1,7 @@ # Copyright: 2005 Gentoo Foundation # Author(s): Brian Harring (ferringb@gentoo.org) # License: GPL2 -# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/portage/cache/template.py,v 1.2 2005/07/13 05:51:35 ferringb Exp $ +# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/portage/cache/template.py,v 1.3 2005/07/28 05:44:42 ferringb Exp $ import cache_errors, copy @@ -32,7 +32,7 @@ class database(object): self.updates = 0 d=self._getitem(cpv) if "_eclasses_" in d: - d["_eclasses_"] = reconstruct_eclasses(d["_eclasses_"]) + d["_eclasses_"] = reconstruct_eclasses(cpv, d["_eclasses_"]) return d def _getitem(self, cpv): @@ -137,7 +137,7 @@ def serialize_eclasses(eclass_dict): """takes a dict, returns a string representing said dict""" return "\t".join(["%s\t%s\t%s" % (k, v[0], str(v[1])) for k,v in eclass_dict.items()]) -def reconstruct_eclasses(eclass_string): +def reconstruct_eclasses(cpv, eclass_string): """returns a dict when handed a string generated by serialize_eclasses""" eclasses = eclass_string.rstrip().lstrip().split("\t") if eclasses == [""]: |