def addRequires(self, path):
        realpath, fileObj = self.recipe.autopkg.findComponent(path)[path]
        data = self.parseInfoFile(realpath)
        pkg = self.recipe.autopkg.componentMap[path]
        infoname = os.path.basename(path)
        if path in pkg.requiresMap:
            # only deps related to userinfo/troveinfo are allowed
            self.error("Illegal requirement on 'info-%s:%s': '%s'" % \
                    (infoname, self.component, str(pkg.requiresMap[path])))
        pkg.requiresMap[path] = deps.DependencySet()
        depSet = self.getRequires(infoname, data)

        fileObj.requires.set(depSet)
        pkg.requiresMap[path].union(depSet)
        pkg.requires.union(depSet)