diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-08-09 13:34:44 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-08-09 13:34:44 -0700 |
commit | 55a7b859d40e6130217cea63a9027730f6780239 (patch) | |
tree | 39c0809f97425d933cd659ec841d420f8844752a /pym/portage/emaint/modules/binhost/binhost.py | |
parent | repoman: remove IUSE.undefined check (diff) | |
download | portage-55a7b859d40e6130217cea63a9027730f6780239.tar.gz portage-55a7b859d40e6130217cea63a9027730f6780239.tar.bz2 portage-55a7b859d40e6130217cea63a9027730f6780239.zip |
emaint binhost: support compress-index
Diffstat (limited to 'pym/portage/emaint/modules/binhost/binhost.py')
-rw-r--r-- | pym/portage/emaint/modules/binhost/binhost.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pym/portage/emaint/modules/binhost/binhost.py b/pym/portage/emaint/modules/binhost/binhost.py index b540d7686..c297545cc 100644 --- a/pym/portage/emaint/modules/binhost/binhost.py +++ b/pym/portage/emaint/modules/binhost/binhost.py @@ -151,12 +151,8 @@ class BinhostHandler(object): del pkgindex.packages[:] pkgindex.packages.extend(metadata.values()) - from portage.util import atomic_ofstream - f = atomic_ofstream(self._pkgindex_file) - try: - self._pkgindex.write(f) - finally: - f.close() + bintree._pkgindex_write(self._pkgindex) + finally: locks.unlockfile(pkgindex_lock) |