aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2010-08-02 23:38:13 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2010-08-02 23:38:13 -0300
commit0a55e65ba9c48ffa35d7add9c9b88bddf83261f2 (patch)
tree1e9555f70f0f2a311a8abe578941bce828a0445f /g_octave
parentadded support to a proper manipulation of licenses (diff)
downloadg-octave-0a55e65ba9c48ffa35d7add9c9b88bddf83261f2.tar.gz
g-octave-0a55e65ba9c48ffa35d7add9c9b88bddf83261f2.tar.bz2
g-octave-0a55e65ba9c48ffa35d7add9c9b88bddf83261f2.zip
fixed tests, broken by the last commit
Diffstat (limited to 'g_octave')
-rw-r--r--g_octave/description.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/g_octave/description.py b/g_octave/description.py
index a19fb67..df0c23e 100644
--- a/g_octave/description.py
+++ b/g_octave/description.py
@@ -147,7 +147,10 @@ class Description(object):
# license
if key == 'license':
- new_license = self._config.licenses.get(self._desc['license'])
+ try:
+ new_license = self._config.licenses.get(self._desc['license'])
+ except:
+ new_license = ''
if new_license not in [None, '']:
self._desc['license_gentoo'] = new_license
else: