summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-12-25 05:04:37 +0000
committerZac Medico <zmedico@gentoo.org>2008-12-25 05:04:37 +0000
commit11db58166a3cd02d15c5609e7a291c7bb5aaf63a (patch)
treeb39e452b38549a4818d4654790202c3aa85eac6f
parent4b1fa9b8f974a8964164ab754582c88eb93c93cc (diff)
downloadportage-11db58166a3cd02d15c5609e7a291c7bb5aaf63a.tar.gz
portage-11db58166a3cd02d15c5609e7a291c7bb5aaf63a.tar.bz2
portage-11db58166a3cd02d15c5609e7a291c7bb5aaf63a.zip
Don't add any more that one "-" symbol to the front of an unsupported EAPI.
(trunk r12328) svn path=/main/branches/2.1.6/; revision=12334
-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)