4343
4444from easybuild .framework .easyconfig .easyconfig import EasyConfig
4545from easybuild .framework .easyconfig .format .one import EB_FORMAT_EXTENSION
46- from easybuild .framework .easyconfig .format .yeb import YEB_FORMAT_EXTENSION , is_yeb_format
4746from easybuild .framework .easyconfig .tools import stats_to_str
4847from easybuild .tools .filetools import copy_file , mkdir , read_file , write_file
4948from easybuild .tools .repository .repository import Repository
@@ -85,14 +84,8 @@ def add_easyconfig(self, cfg, name, version, stats, previous):
8584 # create directory for eb file
8685 full_path = os .path .join (self .wc , self .subdir , name )
8786
88- yeb_format = is_yeb_format (cfg , None )
89- if yeb_format :
90- extension = YEB_FORMAT_EXTENSION
91- prefix = "buildstats: ["
92-
93- else :
94- extension = EB_FORMAT_EXTENSION
95- prefix = "buildstats = ["
87+ extension = EB_FORMAT_EXTENSION
88+ prefix = "buildstats = ["
9689
9790 # destination
9891 dest = os .path .join (full_path , "%s-%s%s" % (name , version , extension ))
@@ -109,10 +102,10 @@ def add_easyconfig(self, cfg, name, version, stats, previous):
109102 if previous :
110103 statstxt = statscomment + statsprefix + '\n '
111104 for entry in previous + [stats ]:
112- statstxt += stats_to_str (entry , isyeb = yeb_format ) + ',\n '
105+ statstxt += stats_to_str (entry ) + ',\n '
113106 statstxt += statssuffix
114107 else :
115- statstxt = statscomment + statsprefix + stats_to_str (stats , isyeb = yeb_format ) + statssuffix
108+ statstxt = statscomment + statsprefix + stats_to_str (stats ) + statssuffix
116109
117110 txt += statstxt
118111 write_file (dest , txt )
0 commit comments