From 2843806fad6d0aa07ad4ce97290ebe1d03b00104 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 25 Oct 2011 15:52:59 -0700 Subject: layout.conf: rename cache_format to cache_formats We read layout.conf cache-formats from left to right and use the first supported type that's found. This will allow support for multiple formats in parallel, providing for smooth transitions between formats. --- bin/egencache | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/egencache b/bin/egencache index 0d07cdb1b..dec10b1e0 100755 --- a/bin/egencache +++ b/bin/egencache @@ -218,7 +218,8 @@ class GenCache(object): self._trg_cache = conf.get_pregenerated_cache(portage.auxdbkeys[:], force=True, readonly=False) if self._trg_cache is None: - raise Exception("cache format %s isn't supported" % (conf.cache_format,)) + raise Exception("cache formats '%s' aren't supported" % + (" ".join(conf.cache_formats),)) if rsync: self._trg_cache.raise_stat_collision = True try: -- cgit v1.2.3-1-g7c22