diff --git a/scripts/automated_ingestion/eessitarball.py b/scripts/automated_ingestion/eessitarball.py index c03b2a64..74d99ebc 100644 --- a/scripts/automated_ingestion/eessitarball.py +++ b/scripts/automated_ingestion/eessitarball.py @@ -145,15 +145,21 @@ def get_contents_overview(self): for m in members if m.isfile() and PurePosixPath(m.path).match(os.path.join(prefix, 'modules', '*', '*', '*.lua')) ] - other = [ # anything that is not in /software nor /modules + reprod_dirs = [ + m.path + for m in members + if m.isdir() and PurePosixPath(m.path).match(os.path.join(prefix, 'reprod', '*', '*', '*')) + ] + other = [ # anything that is not in /software nor /modules nor /reprod m.path for m in members if not PurePosixPath(prefix).joinpath('software') in PurePosixPath(m.path).parents and not PurePosixPath(prefix).joinpath('modules') in PurePosixPath(m.path).parents + and not PurePosixPath(prefix).joinpath('reprod') in PurePosixPath(m.path).parents # if not fnmatch.fnmatch(m.path, os.path.join(prefix, 'software', '*')) # and not fnmatch.fnmatch(m.path, os.path.join(prefix, 'modules', '*')) ] - members_list = sorted(swdirs + modfiles + other) + members_list = sorted(swdirs + modfiles + reprod_dirs + other) # Construct the overview. tar_members = '\n'.join(members_list)