Updated patchinstall.sh for python3

This commit is contained in:
Alistair Leslie-Hughes 2023-02-16 13:23:29 +11:00
parent daff95e4a0
commit 95f5c850de
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ usage()
# Get the upstream commit sha
upstream_commit()
{
echo "b'df5f6f66de80085249d392be5efa085e6ee056a0'"
echo "df5f6f66de80085249d392be5efa085e6ee056a0"
}
# Show version information

View File

@ -735,7 +735,7 @@ def generate_script(all_patches, resolved):
template = template_fp.read()
with open(config.path_script, "w") as fp:
fp.write(template.format(staging_version=_staging_version(),
upstream_commit=upstream_commit,
upstream_commit=upstream_commit.decode(),
patch_helpers="".join(lines_helpers).rstrip("\n"),
patch_resolver="".join(lines_resolver).rstrip("\n"),
patch_apply="".join(lines_apply).rstrip("\n")))