diff options
author | Dusty Phillips <buchuki@gmail.com> | 2008-09-13 11:05:21 -0400 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2008-09-13 11:05:21 -0400 |
commit | 765c6c0cd08973f6cebb007aeff38e82c84e058d (patch) | |
tree | 6ed1fc09106c106e105f613a601f3c004831fcc3 /scripts | |
parent | 355ca8a7a471094dd4630f669e303da3ff807d6d (diff) |
fix bug with packages being orphaned
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/reporead.py | 12 |
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(): |