From a8a6f150c8153fa16f7790b115d56015d0dc13d4 Mon Sep 17 00:00:00 2001 From: Greg Neagle Date: Tue, 5 Apr 2022 10:42:52 -0700 Subject: [PATCH] Python 3 fix for setting Seed Program xattr. --- installinstallmacos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installinstallmacos.py b/installinstallmacos.py index 46fc413..984cda0 100755 --- a/installinstallmacos.py +++ b/installinstallmacos.py @@ -634,7 +634,8 @@ 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', + seeding_program.encode("UTF-8")) print('Product downloaded and installed to %s' % sparse_diskimage_path) if args.raw: unmountdmg(mountpoint)