@@ -89,7 +89,7 @@ def get_header(conda_exec, tarball, info):
8989 variables ["installer_name" ] = name
9090 variables ["installer_version" ] = info ["version" ]
9191 variables ["installer_platform" ] = info ["_platform" ]
92- variables ["installer_md5" ] = hash_files ([conda_exec , tarball ])
92+ variables ["installer_md5" ] = hash_files ([conda_exec , * info [ "_internal_conda_files" ], tarball ])
9393 variables ["default_prefix" ] = info .get ("default_prefix" , "${HOME:-/opt}/%s" % name .lower ())
9494 variables ["first_payload_size" ] = getsize (conda_exec )
9595 variables ["second_payload_size" ] = getsize (tarball )
@@ -196,13 +196,13 @@ def create(info, verbose=False):
196196 t .add (join (info ["_download_dir" ], fn ), "pkgs/" + fn )
197197 t .close ()
198198
199- internal_conda_files = copy_conda_exe (tmp_dir , "_conda" , info ["_conda_exe" ])
200- if internal_conda_files :
199+ info [ "_internal_conda_files" ] = copy_conda_exe (tmp_dir , "_conda" , info ["_conda_exe" ])
200+ if info [ "_internal_conda_files" ] :
201201 conda_exe_payloads : dict [str , tuple [int , int , bool ]] = {}
202202 memfile = BytesIO ()
203203 start = 0
204204 end = 0
205- for path in internal_conda_files :
205+ for path in info [ "_internal_conda_files" ] :
206206 relative_path = str (path .relative_to (tmp_dir ))
207207 memfile .write (path .read_bytes ())
208208 size = os .path .getsize (path )
0 commit comments