summaryrefslogtreecommitdiffstats
path: root/pym/portage/const.py
diff options
context:
space:
mode:
authorW-Mark Kubacki <wmark@hurrikane.de>2012-08-08 18:49:36 +0200
committerZac Medico <zmedico@gentoo.org>2012-08-08 13:18:43 -0700
commit11c0619c63b54346ee5c67cd67ab1ccb24f5f947 (patch)
treef11059016c9b2e7b40b319eb414723abbb4b9c52 /pym/portage/const.py
parent9168d4c184a16e9b992e22bb5d6f3d88b25309b9 (diff)
downloadportage-11c0619c63b54346ee5c67cd67ab1ccb24f5f947.tar.gz
portage-11c0619c63b54346ee5c67cd67ab1ccb24f5f947.tar.bz2
portage-11c0619c63b54346ee5c67cd67ab1ccb24f5f947.zip
Portage writes a compressed copy of 'Packages' index file.
This behaviour is enabled by FEATURES="compress-index". The resulting file is 'Packages.gz' and its modification time will match that of 'Packages'. Web-servers use that copy to avoid repeated on-the-fly compression. In order to re-use 'atomic_ofstream' usage of 'codecs.zlib_codec' has been considered and discarded, because 'GzipFile' yields smaller files. (According to Mark's tests 62% smaller.) Example usage, Nginx: location =/Packages { gzip_static on; default_type text/plain; } Apache httpd (use with caution): RewriteRule ^(.*)/Packages$ $1/Packages.gz [T=text/plain,E=GZIP:gzip,L] <FilesMatch "Packages\.gz$"> Header set Content-Encoding gzip </FilesMatch>
Diffstat (limited to 'pym/portage/const.py')
-rw-r--r--pym/portage/const.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/const.py b/pym/portage/const.py
index ceef5c56b..c2049f871 100644
--- a/pym/portage/const.py
+++ b/pym/portage/const.py
@@ -89,7 +89,7 @@ SUPPORTED_FEATURES = frozenset([
"assume-digests", "binpkg-logs", "buildpkg", "buildsyspkg", "candy",
"ccache", "chflags", "clean-logs",
"collision-protect", "compress-build-logs", "compressdebug",
- "config-protect-if-modified",
+ "compress-index", "config-protect-if-modified",
"digest", "distcc", "distcc-pump", "distlocks",
"downgrade-backup", "ebuild-locks", "fakeroot",
"fail-clean", "force-mirror", "force-prefix", "getbinpkg",