use paths for config.cache.get key

This commit is contained in:
Ronny Pfannschmidt 2018-06-23 00:14:06 +02:00
parent c4c666cbc4
commit 95f00de0df
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ def cacheshow(config, session):
vdir = basedir / "v"
tw.sep("-", "cache values")
for valpath in sorted(x for x in vdir.rglob("*") if x.is_file()):
key = "/".join(valpath.relative_to(vdir).parts)
key = valpath.relative_to(vdir)
val = config.cache.get(key, dummy)
if val is dummy:
tw.line("%s contains unreadable content, " "will be ignored" % key)