summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/reporead.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/reporead.py b/scripts/reporead.py
index 575e4068..e0da32bc 100755
--- a/scripts/reporead.py
+++ b/scripts/reporead.py
@@ -324,8 +324,8 @@ def main(argv=None):
packages_arches[arch] = []
for package in packages:
- if package.arch == None:
- logger.warning("Package %s has no arch" % (package.name))
+ if package.arch not in Package.ARCHES:
+ logger.warning("Package %s has missing or invalid arch" % (package.name))
package.arch = primary_arch
packages_arches[package.arch].append(package)