@@ -188,6 +188,7 @@ def __init__(self, ec, logfile=None):
188188
189189 # list of patch/source files, along with checksums
190190 self .patches = []
191+ self .all_patches = [] # also includes patches of extensions
191192 self .src = []
192193 self .data_src = []
193194 self .checksums = []
@@ -601,6 +602,7 @@ def fetch_patches(self, patch_specs=None, extension=False, checksums=None):
601602 patch_info ['path' ] = path
602603 patch_info ['checksum' ] = self .get_checksum_for (checksums , filename = patch_info ['name' ], index = index )
603604
605+ self .all_patches .append (patch_info )
604606 if extension :
605607 patches .append (patch_info )
606608 else :
@@ -5126,10 +5128,7 @@ def ensure_writable_log_dir(log_dir):
51265128 block = det_full_ec_version (app .cfg ) + ".block"
51275129 repo .add_easyconfig (ecdict ['original_spec' ], app .name , block , buildstats , currentbuildstats )
51285130 repo .add_easyconfig (spec , app .name , det_full_ec_version (app .cfg ), buildstats , currentbuildstats )
5129- patches = app .patches
5130- for ext in app .exts :
5131- patches += ext .get ('patches' , [])
5132- for patch in patches :
5131+ for patch in app .all_patches :
51335132 if 'path' in patch :
51345133 repo .add_patch (patch ['path' ], app .name )
51355134 repo .commit ("Built %s" % app .full_mod_name )
@@ -5153,10 +5152,7 @@ def ensure_writable_log_dir(log_dir):
51535152 _log .debug ("Copied easyconfig file %s to %s" , spec , newspec )
51545153
51555154 # copy patches
5156- patches = app .patches
5157- for ext in app .exts :
5158- patches += ext .get ('patches' , [])
5159- for patch in patches :
5155+ for patch in app .all_patches :
51605156 if 'path' in patch :
51615157 target = os .path .join (new_log_dir , os .path .basename (patch ['path' ]))
51625158 copy_file (patch ['path' ], target )
0 commit comments