diff options
author | Dan McGee <dan@archlinux.org> | 2011-11-16 19:48:36 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-11-16 19:48:36 +0100 |
commit | 404c4b400b2bd2a14e0363e33d66505c51903fe7 (patch) | |
tree | 2619ef64ff831c872df9609142b19bc3c16c5890 | |
parent | c00e7e84045613ee2aa80f66b9972db971ab3f26 (diff) | |
download | archweb-404c4b400b2bd2a14e0363e33d66505c51903fe7.tar.gz archweb-404c4b400b2bd2a14e0363e33d66505c51903fe7.tar.xz |
reporead: a few small tweaks
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | devel/management/commands/reporead.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py index 4522952..ad76db4 100644 --- a/devel/management/commands/reporead.py +++ b/devel/management/commands/reporead.py @@ -450,13 +450,14 @@ def parse_repo(repopath): continue data_file = repodb.extractfile(tarinfo) data_file = io.TextIOWrapper(io.BytesIO(data_file.read()), - encoding='utf=8') + encoding='UTF-8') try: pkgs[pkgid].populate(parse_info(data_file)) except UnicodeDecodeError: logger.warn("Could not correctly decode %s, skipping file", tarinfo.name) data_file.close() + del data_file logger.debug("Done parsing file %s/%s", pkgid, fname) @@ -498,10 +499,10 @@ def read_repo(primary_arch, repo_file, options): logger.warning("Package %s arch = %s", package.name, package.arch) del packages - logger.info('Starting database updates.') + logger.info('Starting database updates for %s.', repo_file) for arch in sorted(packages_arches.keys()): db_update(arch, repo, packages_arches[arch], options) - logger.info('Finished database updates.') + logger.info('Finished database updates for %s.', repo_file) return 0 # vim: set ts=4 sw=4 et: |