summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-04-05 16:26:47 -0700
committereliott <eliott@cactuswax.net>2008-04-05 16:26:47 -0700
commit45fda97596e250089f79023eff42b8397e80357c (patch)
treec141ebbb5e0c19a8ef4bad1b3b5d572bc51998fd /scripts
parent0c23228f6af78f930db302bf46ba78353711f977 (diff)
small fix to arch verification
Diffstat (limited to 'scripts')
-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)