summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-09-13 11:05:21 -0400
committerDusty Phillips <buchuki@gmail.com>2008-09-13 11:05:21 -0400
commit765c6c0cd08973f6cebb007aeff38e82c84e058d (patch)
tree6ed1fc09106c106e105f613a601f3c004831fcc3
parent355ca8a7a471094dd4630f669e303da3ff807d6d (diff)
fix bug with packages being orphaned
-rwxr-xr-xscripts/reporead.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/scripts/reporead.py b/scripts/reporead.py
index 46ab0090..1e2dacf9 100755
--- a/scripts/reporead.py
+++ b/scripts/reporead.py
@@ -277,6 +277,7 @@ def parse_inf(iofile):
# here is where i would convert arrays to strings
# based on count and type, but i dont think it is needed now
i += 1
+
return store
@@ -357,10 +358,13 @@ def main(argv=None):
packages_arches[arch] = []
for package in packages:
- if package.arch not in available_arches:
- logger.warning("Package %s arch = %s" % (package.name,package.arch))
- package.arch = primary_arch
- packages_arches[package.arch].append(package)
+ if package.arch in ('any', primary_arch):
+ packages_arches[package.arch].append(package)
+ else:
+ logger.warning("Package %s arch = %s" % (
+ package.name,package.arch))
+ #package.arch = primary_arch
+
logger.info('Starting database updates.')
for (arch, pkgs) in packages_arches.iteritems():