mirror of
https://github.com/munki/munki.git
synced 2026-05-12 23:38:50 -05:00
checking for name key in makecatalogs, fixes #450
This commit is contained in:
@@ -192,6 +192,12 @@ def makecatalogs(repopath, options):
|
||||
exit_code = -1
|
||||
continue
|
||||
|
||||
if not 'name' in pkginfo:
|
||||
errors.append(
|
||||
"WARNING: file %s is missing name"
|
||||
% filepath[len(pkgsinfopath)+1:])
|
||||
continue
|
||||
|
||||
# don't copy admin notes to catalogs.
|
||||
if pkginfo.get('notes'):
|
||||
del pkginfo['notes']
|
||||
|
||||
Reference in New Issue
Block a user