From 0f889e5753d1025ed1199a34598cc9e47347af57 Mon Sep 17 00:00:00 2001 From: Johan McGwire Date: Fri, 6 Nov 2020 10:36:04 -0500 Subject: [PATCH] Fix for xattr input params Fixes the `Value must be bytes, str was passed` error --- installinstallmacos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installinstallmacos.py b/installinstallmacos.py index bafe611..4a42cf8 100755 --- a/installinstallmacos.py +++ b/installinstallmacos.py @@ -605,7 +605,7 @@ def main(): if installer_app: print("Adding seeding program %s extended attribute to app" % seeding_program) - xattr.setxattr(installer_app, 'SeedProgram', seeding_program) + xattr.setxattr(installer_app, 'SeedProgram', str.encode(seeding_program)) print('Product downloaded and installed to %s' % sparse_diskimage_path) if args.raw: unmountdmg(mountpoint)