Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions scripts/automated_ingestion/eessitarball.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <prefix>/software nor <prefix>/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 <prefix>/software nor <prefix>/modules nor <prefix>/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)
Expand Down
Loading