From 4ed5e4e38149fcbb7aa167243592b247436cff04 Mon Sep 17 00:00:00 2001 From: Samuel Keeley Date: Thu, 12 Feb 2015 06:19:37 -0800 Subject: [PATCH] checking for name key in makecatalogs, fixes #450 --- code/client/makecatalogs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/client/makecatalogs b/code/client/makecatalogs index 4cb1a325..2b420c1a 100755 --- a/code/client/makecatalogs +++ b/code/client/makecatalogs @@ -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']