Updated makepkginfo to use munkilib/FoundationPlist.py instead of plistlib.

git-svn-id: http://munki.googlecode.com/svn/trunk@174 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2009-08-20 17:56:12 +00:00
parent a049d87846
commit 445962ec20
+5 -5
View File
@@ -37,12 +37,12 @@ import os
import re
import optparse
from distutils import version
import plistlib
#import plistlib
import subprocess
import hashlib
from munkilib import munkicommon
from munkilib import FoundationPlist
def getCatalogInfoFromDmg(dmgpath):
"""
@@ -82,7 +82,7 @@ def getBundleInfo(path):
if os.path.exists(infopath):
try:
pl = munkicommon.readPlist(infopath)
pl = FoundationPlist.readPlist(infopath)
return pl
except:
pass
@@ -142,7 +142,7 @@ def getiteminfo(itempath):
infodict['type'] = 'plist'
infodict['path'] = itempath
try:
pl = munkicommon.readPlist(itempath)
pl = FoundationPlist.readPlist(itempath)
if 'CFBundleShortVersionString' in pl:
infodict['CFBundleShortVersionString'] = pl['CFBundleShortVersionString']
except:
@@ -251,7 +251,7 @@ def main():
catinfo['uninstall_method'] = "removepackages"
# and now, what we've all been waiting for...
print plistlib.writePlistToString(catinfo)
print FoundationPlist.writePlistToString(catinfo)
if __name__ == '__main__':