summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-23 19:35:54 -0500
committerDan McGee <dan@archlinux.org>2012-03-23 19:39:52 -0500
commita7dc2a99b6d3343256aef2acc61452c93c4d81fc (patch)
tree85566d3ead375e25dfbaf7f986ccf61e973f937c /devel
parent99da2f78b8fbc2577f82895074ae868683e0ed5e (diff)
reporead: blow up when package found with wrong architecture
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel')
-rw-r--r--devel/management/commands/reporead.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index 8369b6ec..7373c56d 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)