From 765c6c0cd08973f6cebb007aeff38e82c84e058d Mon Sep 17 00:00:00 2001 From: Dusty Phillips Date: Sat, 13 Sep 2008 11:05:21 -0400 Subject: fix bug with packages being orphaned --- scripts/reporead.py | 12 ++++++++---- 1 file 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(): -- cgit v1.2.3-54-g00ecf