Allow for Version, Flavor and Download-URL not being set.
This commit is contained in:
parent
705553acab
commit
c7c78ae531
|
@ -380,11 +380,11 @@ class PimpPackage:
|
||||||
return self._dict[key]
|
return self._dict[key]
|
||||||
|
|
||||||
def name(self): return self._dict['Name']
|
def name(self): return self._dict['Name']
|
||||||
def version(self): return self._dict['Version']
|
def version(self): return self._dict.get('Version')
|
||||||
def flavor(self): return self._dict['Flavor']
|
def flavor(self): return self._dict.get('Flavor')
|
||||||
def description(self): return self._dict['Description']
|
def description(self): return self._dict['Description']
|
||||||
def homepage(self): return self._dict.get('Home-page')
|
def homepage(self): return self._dict.get('Home-page')
|
||||||
def downloadURL(self): return self._dict['Download-URL']
|
def downloadURL(self): return self._dict.get('Download-URL')
|
||||||
|
|
||||||
def fullname(self):
|
def fullname(self):
|
||||||
"""Return the full name "name-version-flavor" of a package.
|
"""Return the full name "name-version-flavor" of a package.
|
||||||
|
|
Loading…
Reference in New Issue