mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-17 17:56:33 +00:00
Python 3 fix for setting Seed Program xattr.
This commit is contained in:
parent
854798a010
commit
a8a6f150c8
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user