From 6fad174aa361b1b921fa9dae801239f2fa5fa397 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Thu, 12 Apr 2012 14:54:22 +0100 Subject: cachekeycomputer: prepare build environment change CacheKeyComputer needs to know some stuff that is needed elsewhere as well. Rather than duplicate the storage, have a BuildEnvironment class to handle that. --- morphlib/cachekeycomputer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'morphlib/cachekeycomputer.py') diff --git a/morphlib/cachekeycomputer.py b/morphlib/cachekeycomputer.py index ade74b79..1cc377b3 100644 --- a/morphlib/cachekeycomputer.py +++ b/morphlib/cachekeycomputer.py @@ -20,9 +20,9 @@ import morphlib class CacheKeyComputer(): - def __init__(self, env): + def __init__(self, build_env): self._arch = morphlib.util.arch() - self._env = self._filterenv(env) + self._env = self._filterenv(build_env.env) self._calculated = {} def _filterenv(self, env): -- cgit v1.2.1