mirror of
https://github.com/munki/munki.git
synced 2026-04-26 15:00:08 -05:00
Conflict resolution
This commit is contained in:
@@ -1977,13 +1977,19 @@ def processRemoval(manifestitem, cataloglist, installinfo):
|
||||
|
||||
|
||||
def getManifestData(manifestpath):
|
||||
'''Reads a manifest file, returns a
|
||||
dictionary-like object'''
|
||||
'''Reads a manifest file, returns a dictionary-like object.'''
|
||||
plist = {}
|
||||
try:
|
||||
plist = FoundationPlist.readPlist(manifestpath)
|
||||
except FoundationPlist.NSPropertyListSerializationException:
|
||||
munkicommon.display_error('Could not read plist %s' % manifestpath)
|
||||
munkicommon.display_error('Could not read plist: %s', manifestpath)
|
||||
if os.path.exists(manifestpath):
|
||||
try:
|
||||
os.unlink(manifestpath)
|
||||
except OSError, e:
|
||||
munkicommon.display_error('Failed to delete plist: %s', str(e))
|
||||
else:
|
||||
munkicommon.display_error('plist does not exist.')
|
||||
return plist
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user