Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Unified Diff: build/config/mac/write_pkg_info.py

Issue 2559323005: Add support for generating PkgInfo for application bundle on iOS. (Closed)
Patch Set: Add a comment to explain why the intermediate file is not named PkfInfo. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« build/config/ios/rules.gni ('K') | « build/config/ios/rules.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/mac/write_pkg_info.py
diff --git a/build/config/mac/write_pkg_info.py b/build/config/mac/write_pkg_info.py
index b03e77928059d67cd8e20a82536faad81cc1847e..3e2c3c930e059a51462772f8a22ba8e99458ad4a 100644
--- a/build/config/mac/write_pkg_info.py
+++ b/build/config/mac/write_pkg_info.py
@@ -4,7 +4,7 @@
import argparse
import os
-import plistlib
+import plist_util
import sys
# This script creates a PkgInfo file for an OS X .app bundle's plist.
@@ -24,7 +24,7 @@ def Main():
if os.path.exists(args.output):
os.unlink(args.output)
- plist = plistlib.readPlist(args.plist)
+ plist = plist_util.LoadPList(args.plist)
package_type = plist['CFBundlePackageType']
if package_type != 'APPL':
raise ValueError('Expected CFBundlePackageType to be %s, got %s' % \
« build/config/ios/rules.gni ('K') | « build/config/ios/rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698