Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2013-05-26 07:37:22 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2013-05-26 07:37:22 (GMT)
commite12c1b54791a8526ccab3aca9aca60912fc769d6 (patch)
tree1ca300fbbf79084a3cb31ac8d3051dd73b7d086c
parentcea093d684d26ef9f59f52f4e82423caba5c4e98 (diff)
More sane checking if activity.info icon is a valid path
-rw-r--r--sugar_network/client/spec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar_network/client/spec.py b/sugar_network/client/spec.py
index 95f6334..d9c617d 100644
--- a/sugar_network/client/spec.py
+++ b/sugar_network/client/spec.py
@@ -186,7 +186,7 @@ class Spec(object):
self._fields['homepage'] = \
'http://wiki.sugarlabs.org/go/Activities/%s' % \
self['name']
- if '.' not in self['icon']:
+ if not self['icon'].lower().endswith('.svg'):
self._fields['icon'] = join('activity', self['icon'] + '.svg')
if not self['license']:
self._fields['license'] = 'license is not specified'