summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-12-25 02:53:13 +0000
committerZac Medico <zmedico@gentoo.org>2008-12-25 02:53:13 +0000
commitff3b62faa19303bfdc36c961e3e9c2fc6f74074f (patch)
tree90f5376a5855f96746b94f0e82a7ffc819e7c5f5
parent09cc5c655fcc34a13842ca6d296a32cbedb8b820 (diff)
downloadportage-ff3b62faa19303bfdc36c961e3e9c2fc6f74074f.tar.gz
portage-ff3b62faa19303bfdc36c961e3e9c2fc6f74074f.tar.bz2
portage-ff3b62faa19303bfdc36c961e3e9c2fc6f74074f.zip
Don't add any more that one "-" symbol to the front of an unsupported EAPI.
svn path=/main/trunk/; revision=12328
-rw-r--r--pym/portage/cache/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/cache/util.py b/pym/portage/cache/util.py
index 7e8310014..26bc5f9e0 100644
--- a/pym/portage/cache/util.py
+++ b/pym/portage/cache/util.py
@@ -103,7 +103,7 @@ def mirror_cache(valid_nodes_iterable, src_cache, trg_cache, eclass_cache=None,
if not eapi_is_supported(eapi):
for k in set(entry).difference(("_mtime_", "_eclasses_")):
entry[k] = ""
- entry["EAPI"] = "-" + eapi
+ entry["EAPI"] = "-" + eapi.lstrip("-")
# by this time, if it reaches here, the eclass has been validated, and the entry has
# been updated/translated (if needs be, for metadata/cache mainly)