Commit 4c97cfb6 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos.package: Wrapper library call to make tests easy.

parent 78667d8f
......@@ -70,14 +70,17 @@ class PackageManager:
def matchSignatureList(self, signature_list):
return self.getOSSignature() in signature_list
def _getLinuxDistribution(self):
return patched_linux_distribution()
def getOSSignature(self):
return "+++".join([i.strip().lower() for i in patched_linux_distribution()])
return "+++".join([i.strip().lower() for i in self._getLinuxDistribution()])
def getDistributionName(self):
return patched_linux_distribution()[0]
return self._getLinuxDistribution()[0]
def getVersion(self):
return patched_linux_distribution()[1]
return self._getLinuxDistribution()[1]
def _call(self, *args, **kw):
""" This is implemented in BasePromise """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment