def get_provides(package): provides = {} package_version = Version.CommonVersion(package.get_version()) for provision in package.get_provides(): name, vers = Version.SplitProvision(provision) provides[name] = vers or package_version return provides
def set_provides(self, value): for v in value: Version.SplitProvision(v) self.provides = value