From a7dc2a99b6d3343256aef2acc61452c93c4d81fc Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 23 Mar 2012 19:35:54 -0500 Subject: reporead: blow up when package found with wrong architecture Signed-off-by: Dan McGee --- devel/management/commands/reporead.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'devel') diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py index 8369b6e..7373c56 100644 --- a/devel/management/commands/reporead.py +++ b/devel/management/commands/reporead.py @@ -537,8 +537,9 @@ def read_repo(primary_arch, repo_file, options): if package.arch in packages_arches: packages_arches[package.arch].append(package) else: - # we don't include mis-arched packages - logger.warning("Package %s arch = %s", package.name, package.arch) + raise Exception( + "Package %s in database %s had wrong architecture %s" % ( + package.name, repo_file, package.arch)) del packages logger.info('Starting database updates for %s.', repo_file) -- cgit v1.2.3-24-g4f1b