summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [ Martin Pitt ]David Kalnischkies2010-07-1125-2021/+2645
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * debian/rules: - Make DEB_BUILD_OPTIONS=noopt actually work by passing the right CXXFLAGS. * apt-pkg/contrib/fileutl.{h,cc}: - Add support for reading of gzipped files with the new "ReadOnlyGzip" OpenMode. (Closes: #188407) - Link against zlib (in apt-pkg/makefile) and add zlib build dependency. - [ABI BREAK] This adds a new private member to FileFd, but its initialization is in the public header file. * configure.in: - Check for zlib library and headers. * apt-pkg/acquire-item.cc, apt-pkg/deb/debindexfile.cc, apt-pkg/deb/debrecords.cc, apt-pkg/deb/debsrcrecords.h, cmdline/apt-cache.cc: - Open Packages, Sources, and Translations indexes in "ReadOnlyGzip" mode. * apt-pkg/deb/debindexfile.cc: - If we do not find uncompressed package/source/translation indexes, look for gzip compressed ones. * apt-pkg/acquire-item.cc: - If the Acquire::GzipIndexes option is true and we download a gzipped index file, keep it as it is (and rename to .gz) instead of uncompressing it. * doc/apt.conf.5.xml: - Document the new Acquire::GzipIndexes option. * doc/po/apt-doc.pot, doc/po/de.po: - German translation of new Acquire::GzipIndexes option. * Add test/test-indexes.sh: - Test behaviour of index retrieval and usage, in particular with uncompressed and gzip compressed indexes. * methods/gzip.cc: With FileFd now being able to read gzipped files, there is no need for the gzip method any more to spawn an external gzip process. Rewrite it to use FileFd directly, which makes the code a lot simpler, and also using less memory and overhead.
| * methods/gzip.cc: With FileFd now being able to read gzipped files, theremartin@piware.de2010-07-062-56/+11
| | | | | | | | | | is no need for the gzip method any more to spawn an external gzip process. Rewrite it to use FileFd directly, which makes the code a lot simpler, and also using less memory and overhead.
| * FileFd(): Drop file name extension check in ReadOnlyGzip modemartin@piware.de2010-07-061-3/+11
| | | | | | | | | | | | | | | | | | | | Drop the ".gz" extension check in FileFd::Open() in ReadOnlyGzip mode, to not depend on a particular file extension. This allows rewriting the gzip method using internal decompression (on ".decomp" files). This requires a zlib bug workaround in FileFd::Close(): When opening an empty file with gzdopen(), gzclose() fails with Z_BUF_ERROR. Do not count this as a failure.
| * test-indexes.sh: EXFAIL: file:/ URIs currently decompress even with the ↵martin@piware.de2010-06-241-1/+3
| | | | | | | | GzipIndexes option; not a big deal for now
| * apt-pkg/acquire-item.cc: Fix handling of local (file:/) sourcesmartin@piware.de2010-06-241-1/+1
| |
| * test-indexes.sh: Test handling of local file:// archivesmartin@piware.de2010-06-241-3/+34
| |
| * Switch FileFd to not transparently gunzip, since that breaks code which ↵martin@piware.de2010-06-248-17/+25
| | | | | | | | expects the compressed contents to stay (such as the copy backend, or when using file:// repositories. Instead, introduce a new ReadOnlyGzip mode and use that where needed
| * debian/changelog: it is an ABI break after allmartin@piware.de2010-06-211-2/+3
| |
| * test-indexes.sh: quiesce apt-get source; we know that we cannot verify ↵martin@piware.de2010-06-171-1/+2
| | | | | | | | package signatures
| * test-indexes.sh: Also test compressed index mode with apt.conf.d filemartin@piware.de2010-06-171-2/+27
| |
| * test-indexes.sh: Just for paranoia, test that apt-cache is still working ↵martin@piware.de2010-06-171-0/+4
| | | | | | | | after apt-get update with previously existing indexes
| * pkgAcqIndex::Done(): If we have an IMS-Hit, also rename the destination file ↵martin@piware.de2010-06-171-2/+7
| | | | | | | | in GzipIndexes mode, to avoid it being cleaned
| * test-indexes.sh: fix check_indexes call in compressed modemartin@piware.de2010-06-171-2/+2
| |
| * test-indexes.sh: Actually test for non/pre-existing indexes in compressed modemartin@piware.de2010-06-171-3/+4
| |
| * test-indexes: Use /etc/apt from temporary work dir, not from systemmartin@piware.de2010-06-171-2/+8
| |
| * test-indexes.sh: Refactor common code into functionsmartin@piware.de2010-06-171-74/+81
| |
| * test-indexes.sh: More verbose failures on wrong/missing indexesmartin@piware.de2010-06-171-25/+28
| |
| * test/test-indexes.sh: Stop hardcoding archive gpg key ID, get it from first ↵martin@piware.de2010-06-151-4/+7
| | | | | | | | failed apt-get update output
| * apt-pkg/deb/debindexfile.cc: Fix one more place to check for gzipped ↵martin@piware.de2010-06-111-3/+7
| | | | | | | | indexes, to work with apt-get source as well
| * * apt-pkg/acquire-item.cc:martin@piware.de2010-06-112-0/+6
| | | | | | | | | | - Fix return value of pkgAcqFile::Custom600Headers() in the non-index case, to avoid returning NULL and causing crashers in callers. This also fixes a compiler warning.
| * test-indexes.sh: Add source related tests, which uncovers two regressionsmartin@piware.de2010-06-111-2/+39
| |
| * changelog: clarify abi break, it's not externalmartin@piware.de2010-06-111-2/+2
| |
| * * configure.in:martin@piware.de2010-06-112-0/+6
| | | | | | - Check for zlib library and headers.
| * * doc/po/apt-doc.pot, doc/po/de.po:martin@piware.de2010-06-113-240/+275
| | | | | | - German translation of new Acquire::GzipIndexes option.
| * * doc/apt.conf.5.xml:martin@piware.de2010-06-112-0/+11
| | | | | | - Document the new Acquire::GzipIndexes option.
| * Fix compressed index retrieval for current timestampsmartin@piware.de2010-06-111-17/+16
| | | | | | | | | | Fix a thinko in r1973, which did the Acquire::GzipIndexes test ealier than the IMS-Hit test. This led to rename errors.
| * * debian/rules:martin@piware.de2010-06-112-1/+4
| | | | | | | | - Make DEB_BUILD_OPTIONS=noopt actually work by passing the right CXXFLAGS.
| * * Add test/test-indexes.sh:martin@piware.de2010-06-102-0/+109
| | | | | | | | - Test behaviour of index retrieval and usage, in particular with uncompressed and gzip compressed indexes.
| * mention abi break in changelogmartin@piware.de2010-06-101-0/+2
| |
| * * apt-pkg/acquire-item.cc:martin@piware.de2010-06-102-1/+23
| | | | | | | | | | - If the Acquire::GzipIndexes option is true and we download a gzipped index file, keep it as it is (and rename to .gz) instead of uncompressing it.
| * * apt-pkg/deb/debindexfile.cc:martin@piware.de2010-06-092-3/+22
| | | | | | | | - If we do not find uncompressed package/source/translation indexes, look for gzip compressed ones.
| * * apt-pkg/contrib/fileutl.{h,cc}:martin@piware.de2010-06-095-11/+55
| | | | | | | | - Add support for transparent reading of gzipped files. - Link against zlib (in apt-pkg/makefile) and add zlib build dependency.
* | * apt-pkg/contrib/error.{cc,h}:David Kalnischkies2010-07-103-7/+15
| | | | | | | | - remove constness of va_list parameter to fix build on amd64 and co Thanks Eric Valette! (Closes: #588610)
* | releasing version 0.7.26~exp9Michael Vogt2010-07-091-1/+3
| |
* | * doc/apt.conf.5.xml:Michael Vogt2010-07-097-31/+65
|\ \ | | | | | | - add and document APT::Cache-{Start,Grow,Limit} options for mmap control
| * | check the state of the FileFd before renaming as otherwise the renameDavid Kalnischkies2010-07-091-6/+8
| | | | | | | | | | | | | | | will be tried twice e.g. in an "apt-get update" run and every other piece of code closing the FileFd manual before the destructor will do it again.
| * | switch from std::set to std::vector as it is way more simple, a bitDavid Kalnischkies2010-07-092-15/+13
| | | | | | | | | | | | faster and still provides everything we need for the Cache generator
| * | * doc/apt.conf.5.xml:David Kalnischkies2010-07-096-11/+39
| | | | | | | | | - add and document APT::Cache-{Start,Grow,Limit} options for mmap control
* | | releasing version 0.7.26~exp8Michael Vogt2010-07-091-2/+2
| | |
* | | * apt-pkg/deb/dpkgpm.cc:Michael Vogt2010-07-092-1/+5
|\ \ \ | | | | | | | | - make the apt/term.log output unbuffered (thanks to Matt Zimmerman)
| * | | * apt-pkg/deb/dpkgpm.cc:Michael Vogt2010-07-072-1/+4
| | | | | | | | | | | | - make the apt/term.log output unbuffered (thanks to Matt Zimmerman)
* | | | merged from donkultMichael Vogt2010-07-0938-1153/+2097
|\ \ \ \ | | |/ / | |/| |
| * | | * apt-pkg/pkgcachegen.{cc,h}:David Kalnischkies2010-07-088-77/+226
| | | | | | | | | | | | | | | | - make the used MMap moveable (and therefore dynamic resizeable) by applying (some) mad pointer magic (Closes: #195018)
| * | | use references instead of copies in the Cache generation methodsDavid Kalnischkies2010-07-084-25/+26
| | | |
| * | | wrap the mmap actions in the CacheGenerator in their own methods toDavid Kalnischkies2010-07-062-23/+42
| | | | | | | | | | | | | | | | be able to react on condition changes later then we can move mmap
| * | | extends the ParseDepends testcase to have a look also at the WildcardsDavid Kalnischkies2010-07-051-0/+68
| | | |
| * | | merge with debian-experimental-maDavid Kalnischkies2010-07-058-22/+107
| |\ \ \ | |/ / / |/| | |
* | | | Fix the atomic replace.Julian Andres Klode2010-06-291-1/+1
| | | |
* | | | * apt-pkg/contrib/fileutl.cc:Julian Andres Klode2010-06-293-6/+19
| | | | | | | | | | | | - Make FileFd replace files atomically in WriteTemp mode (for cache, etc).
* | | | debian/control: Set Standards-Version to 3.9.0Julian Andres Klode2010-06-292-1/+3
| | | |