summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/combo-layer2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/combo-layer b/scripts/combo-layer
index 089b65f97e..d04d88b070 100755
--- a/scripts/combo-layer
+++ b/scripts/combo-layer
@@ -294,6 +294,8 @@ def action_init(conf, args):
294 # again. Uses the list of files created by tar (easier 294 # again. Uses the list of files created by tar (easier
295 # than walking the tree). 295 # than walking the tree).
296 for file in files.split('\n'): 296 for file in files.split('\n'):
297 if file.endswith(os.path.sep):
298 continue
297 for pattern in exclude_patterns: 299 for pattern in exclude_patterns:
298 if fnmatch.fnmatch(file, pattern): 300 if fnmatch.fnmatch(file, pattern):
299 os.unlink(os.path.join(*([extract_dir] + ['..'] * subdir_components + [file]))) 301 os.unlink(os.path.join(*([extract_dir] + ['..'] * subdir_components + [file])))