def verifyInstalledFileList(self, dir, list):
        paths = {}
        for path in list:
            paths[path] = True
        dirLen = len(dir)

        # this skips all of /var/lib/conarydb/
        for (dirName, dirNameList, pathNameList) in os.walk(dir):
            for path in pathNameList:
                if path[0] == ".": continue
                fullPath = dirName[dirLen:] + "/" + path
                if fullPath == "/var/log/conary": continue

                if fullPath.startswith("/var/lib/conarydb/"): continue
                if paths.has_key(fullPath):
                    del paths[fullPath]
                else:
                    self.fail("unexpected file %s" % fullPath)

        if paths:
            self.fail("files missing %s" % " ".join(paths.keys()))
dataset/ETHPy150Open sassoftware/conary/conary_test/rephelp.py/RepositoryHelper.verifyInstalledFileList/original