Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 def set_provides(self, value):
     for v in value:
         Version.SplitProvision(v)
     self.provides = value