mirror of
https://github.com/munki/munki.git
synced 2026-04-22 20:48:36 -05:00
When using lsbom to read pathnames, decode from UTF-8 to unicode. Attempt to fix issue 341.
This commit is contained in:
@@ -127,8 +127,8 @@ def extractAppIconsFromFlatPkg(pkg_path):
|
||||
if proc.returncode:
|
||||
print >> sys.stderr, u'Could not lsbom %s' % bomfile
|
||||
# record paths to all app Info.plist files
|
||||
pkg_dict[pkgname]= [
|
||||
os.path.normpath(line) for line in output.splitlines()
|
||||
pkg_dict[pkgname] = [os.path.normpath(line)
|
||||
for line in output.decode('utf-8').splitlines()
|
||||
if line.endswith(u'.app/Contents/Info.plist')]
|
||||
if not pkg_dict[pkgname]:
|
||||
# remove empty lists
|
||||
|
||||
Reference in New Issue
Block a user