fix for redownloading paks every time

This commit is contained in:
Mathew Guest 2021-08-21 20:12:16 -06:00
parent be9dc63a00
commit 586aa9a1dc

@ -395,6 +395,14 @@ ssh {remote_game_host} chown ut4.ut4 {remote_game_dir} -R
relative_path = p.relative_to(mod_dir) relative_path = p.relative_to(mod_dir)
pkg_basename = p.name pkg_basename = p.name
# TODO(MG) Handle filenames w/o extension
try:
split = os.path.splitext(pkg_basename)
pkg_basename = split[0]
except Exception as ex:
print(ex)
continue
line = game_ini.add_redirect_reference(**{ line = game_ini.add_redirect_reference(**{
'pkg_basename': pkg_basename, 'pkg_basename': pkg_basename,
'redirect_protocol': redirect_protocol, 'redirect_protocol': redirect_protocol,