File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
scripts/automated_ingestion Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,15 @@ def get_contents_overview(self):
95
95
96
96
else :
97
97
tar_members_desc = 'Summarized overview of the contents of the tarball:'
98
- prefix = os .path .commonprefix (paths )
98
+ # determine prefix after filtering out '<EESSI version>/init' subdirectory,
99
+ # to get actual prefix for specific CPU target (like '2023.06/software/linux/aarch64/neoverse_v1')
100
+ init_subdir = os .path .join ('*' , 'init' )
101
+ non_init_paths = sorted ([p for p in paths if not any (x .match (init_subdir ) for x in PurePosixPath (p ).parents )])
102
+ if non_init_paths :
103
+ prefix = os .path .commonprefix (non_init_paths )
104
+ else :
105
+ prefix = os .path .commonprefix (paths )
106
+
99
107
# TODO: this only works for software tarballs, how to handle compat layer tarballs?
100
108
swdirs = [ # all directory names with the pattern: <prefix>/software/<name>/<version>
101
109
m .path
You can’t perform that action at this time.
0 commit comments