diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index 7d11816d54..55fa889816 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -649,9 +649,10 @@ def NeedsBuild(files, others): key = tuple(files) if key in BUILTFROMCACHE: - if BUILTFROMCACHE[key] == dates: + cached = BUILTFROMCACHE[key] + if cached == dates: return False - if VERBOSE and frozenset(oldothers) != frozenset(others): + if VERBOSE and frozenset(cached.keys()) != frozenset(dates.keys()): print("%sWARNING:%s file dependencies changed: %s%s%s" % (GetColor("red"), GetColor(), GetColor("green"), files, GetColor())) return True