mirror of
https://github.com/munki/munki.git
synced 2026-04-23 04:59:17 -05:00
Changed filename checking in cleanUpManifests to ignore all files named 'SelfServeManifest'
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user