remove redundancy and lines > 80 chars

This commit is contained in:
Samuel Keeley
2015-01-22 14:11:17 -08:00
parent 93659f0c63
commit a7ceae35d4
+2 -5
View File
@@ -211,15 +211,12 @@ def makecatalogs(repopath, options):
iconhash = icons.get(pkginfo.get('icon_name')+'.png')
else:
errors.append("WARNING: icon_name specified"
" in info file %s but it does not exist" % filepath[len(pkgsinfopath)+1:])
" in info file %s but it does not exist"
% filepath[len(pkgsinfopath)+1:])
else:
if icons.get(name+'.png'):
iconhash = icons.get(name+'.png')
# we are generating the icon hashes above so strip this key if it exists - we'll be replacing it.
if pkginfo.get('icon_hash'):
del(pkginfo['icon_hash'])
if iconhash is not None:
pkginfo.update({'icon_hash':iconhash})
iconhash = None