Python 3 fix for setting Seed Program xattr.

This commit is contained in:
Greg Neagle 2022-04-05 10:42:52 -07:00
parent 854798a010
commit a8a6f150c8

View File

@ -634,7 +634,8 @@ def main():
if installer_app: if installer_app:
print("Adding seeding program %s extended attribute to app" print("Adding seeding program %s extended attribute to app"
% seeding_program) % 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) print('Product downloaded and installed to %s' % sparse_diskimage_path)
if args.raw: if args.raw:
unmountdmg(mountpoint) unmountdmg(mountpoint)