Changed filename checking in cleanUpManifests to ignore all files named 'SelfServeManifest'

This commit is contained in:
David Symons
2015-06-25 14:38:04 +10:00
parent cb5117b18d
commit 3e4935ec9b
+4 -3
View File
@@ -2635,12 +2635,13 @@ def cleanUpManifests():
for (dirpath, dirnames, filenames) in os.walk(manifest_dir, topdown=False):
for name in filenames:
if name in exceptions:
continue
abs_path = os.path.join(dirpath, name)
rel_path = abs_path[len(manifest_dir):].lstrip("/")
if rel_path in exceptions:
continue
if rel_path not in MANIFESTS.keys():
os.unlink(abs_path)