mirror of
https://github.com/munki/munki.git
synced 2026-05-23 06:38:36 -05:00
remove redundancy and lines > 80 chars
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user