diff options
author | Dan McGee <dan@archlinux.org> | 2011-06-10 17:46:06 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-15 01:17:22 +0200 |
commit | b336dd15598132d1c501a9d44bc4d5a0e64bfb2e (patch) | |
tree | b54b2cf920764905fb6024ac365a4186002bb296 /devel/management/commands | |
parent | 92dbad587ab77b84130b86153464647d583b677e (diff) | |
download | archweb-b336dd15598132d1c501a9d44bc4d5a0e64bfb2e.tar.gz archweb-b336dd15598132d1c501a9d44bc4d5a0e64bfb2e.tar.xz |
reporead: small memory/perf improvements
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/management/commands')
-rw-r--r-- | devel/management/commands/reporead.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py index 4d30388..baf7fee 100644 --- a/devel/management/commands/reporead.py +++ b/devel/management/commands/reporead.py @@ -116,11 +116,11 @@ class Pkg(object): logger.warning('Package %s had unparsable build date %s', self.name, v[0]) elif k == 'files': - self.files = v + self.files = tuple(v) self.has_files = True else: # anything left in collections - setattr(self, k, v) + setattr(self, k, tuple(v)) @property def full_version(self): @@ -528,7 +528,9 @@ def read_repo(primary_arch, repo_file, options): else: # we don't include mis-arched packages logger.warning("Package %s arch = %s", - package.name,package.arch) + package.name, package.arch) + del packages + logger.info('Starting database updates.') for arch in sorted(packages_arches.keys()): db_update(arch, repo, packages_arches[arch], options) |