def getManifestData(manifestpath):
    '''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)
        if os.path.exists(manifestpath):
            try:
                os.unlink(manifestpath)
            except __HOLE__, err:
                munkicommon.display_error(
                    'Failed to delete plist: %s', unicode(err))
        else:
            munkicommon.display_error('plist does not exist.')
    return plist
dataset/ETHPy150Open munki/munki/code/client/munkilib/updatecheck.py/getManifestData