don't try to delete normalized version

This commit is contained in:
Damien Elmes 2011-01-19 02:34:13 +09:00
parent bd7f5787cc
commit 0fc662a919

View file

@ -167,8 +167,8 @@ def rebuildMediaDir(deck, delete=False, dirty=True):
if not os.path.isfile(path): if not os.path.isfile(path):
# ignore directories # ignore directories
continue continue
file = norm(file) nfile = norm(file)
if file not in normrefs: if nfile not in normrefs:
unused.append(file) unused.append(file)
# optionally delete # optionally delete
if delete: if delete: