Added debug logging to removeBundleRelocationInfo()

git-svn-id: http://munki.googlecode.com/svn/trunk@475 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2010-02-23 21:15:07 +00:00
parent 9f5a194cc0
commit 647a6da41e
+6
View File
@@ -43,6 +43,8 @@ def removeBundleRelocationInfo(pkgpath):
that would cause bundle relocation behavior.
This makes bundles install or update in their
default location.'''
munkicommon.display_debug1(
"Looking for bundle relocation info...")
if os.path.isdir(pkgpath):
# remove relocatable stuff
tokendefinitions = os.path.join(pkgpath,
@@ -50,6 +52,8 @@ def removeBundleRelocationInfo(pkgpath):
if os.path.exists(tokendefinitions):
try:
os.remove(tokendefinitions)
munkicommon.display_debug1(
"Removed Contents/Resources/TokenDefinitions.plist")
except:
pass
@@ -65,6 +69,8 @@ def removeBundleRelocationInfo(pkgpath):
del pl['IFPkgPathMappings']
try:
FoundationPlist.writePlist(pl, infoplist)
munkicommon.display_debug1(
"Removed IFPkgPathMappings")
except:
pass