checking for name key in makecatalogs, fixes #450

This commit is contained in:
Samuel Keeley
2015-02-12 06:19:37 -08:00
parent 1745cd295f
commit 4ed5e4e381
+6
View File
@@ -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']