Allow for Version, Flavor and Download-URL not being set.

This commit is contained in:
Jack Jansen 2003-05-06 13:07:32 +00:00
parent 705553acab
commit c7c78ae531
1 changed files with 3 additions and 3 deletions

View File

@ -380,11 +380,11 @@ class PimpPackage:
return self._dict[key]
def name(self): return self._dict['Name']
def version(self): return self._dict['Version']
def flavor(self): return self._dict['Flavor']
def version(self): return self._dict.get('Version')
def flavor(self): return self._dict.get('Flavor')
def description(self): return self._dict['Description']
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):
"""Return the full name "name-version-flavor" of a package.