Don't add any more that one "-" symbol to the front of an unsupported EAPI.
authorZac Medico <zmedico@gentoo.org>
Thu, 25 Dec 2008 02:53:13 +0000 (02:53 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 25 Dec 2008 02:53:13 +0000 (02:53 -0000)
svn path=/main/trunk/; revision=12328

pym/portage/cache/util.py

index 7e8310014b3b1a2d1a01c07b68ef651cc28b8210..26bc5f9e0709c3a97cbf35fabd351f8503fdd27a 100644 (file)
@@ -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)