Commit a7dc2a99 authored by Dan McGee's avatar Dan McGee
Browse files

reporead: blow up when package found with wrong architecture



Signed-off-by: default avatarDan McGee <dan@archlinux.org>
parent 99da2f78
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment