summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
Commit message (Collapse)AuthorAgeFilesLines
...
| | * merged fixes from lp:~mvo/apt/mvoMichael Vogt2011-08-151-0/+1
| | |\
| | | * fix crash when P.Arch() was used but the cache got remappedMichael Vogt2011-08-081-1/+1
| | | |\
| | | * | apt-pkg/acquire-item.cc: add more debug outputMichael Vogt2011-08-081-0/+1
| | | | |
| | * | | cppcheck complains about some possible speed improvements which could beDavid Kalnischkies2011-08-111-11/+11
| | | |/ | | |/| | | | | | | | | | | | | | | | | done on the mirco-optimazation level, so lets fix them: (performance) Possible inefficient checking for emptiness. (performance) Prefer prefix ++/-- operators for non-primitive types.
| | * | * test/integration/test-hashsum-verification:Michael Vogt2011-08-051-2/+3
| | |\| | | | | | | | | | | | | | | | | | | | | - add regression test for hashsum verification * apt-pkg/acquire-item.cc: - if no Release.gpg file is found, still load the hashes for verification (closes: #636314) and add test
| | | * * apt-pkg/acquire-item.cc:Michael Vogt2011-08-051-2/+3
| | |/ | | | | | | | | | - if no Release.gpg file is found, still load the hashes for verification (closes: #636314) and add test
| * | apt-pkg/acquire-item.cc: always init VerifyMichael Vogt2011-08-051-0/+4
| | |
| * | * apt-pkg/acquire-item.{cc,h}:Michael Vogt2011-08-051-0/+4
| | | | | | | | | | | | - do not check for a "Package" tag in optional index targets like the translations index
| * | * [ABI break] apt-pkg/acquire-item.{cc,h}:Michael Vogt2011-07-281-10/+0
| | | | | | | | | - cleanup around OptionalIndexTarget and SubIndexTarget
* | | reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies2011-09-131-2/+4
|/ /
* | merged from http://bzr.debian.org/bzr/apt/apt/debian-sidMichael Vogt2011-07-151-2/+4
|\|
| * apt-pkg/acquire-item.cc: improve error message for valid-untilMichael Vogt2011-07-011-2/+4
| |
* | * apt-pkg/acquire*.{cc,h}:David Kalnischkies2011-07-051-15/+15
| | | | | | | | - try even harder to support really big files in the fetcher by converting (hopefully) everything to 'long long' (Closes: #632271)
* | merge lp:~mvo/apt/abi-breakMichael Vogt2011-06-291-1/+5
|\ \ | |/ |/|
| * merge lp:~mvo/apt/sha512-template to add support for sha512Michael Vogt2011-06-081-1/+5
| |\
| | * add sha512 support in the client now as wellMichael Vogt2011-02-251-1/+5
| | |
* | | apt-pkg/acquire-item.cc: only test packages file for correctness if its not ↵Michael Vogt2011-05-311-11/+14
| | | | | | | | | | | | empty (its ok to have empty packages files)
* | | Reject files known to be invalid (LP: #346386) (Closes: #627642)Julian Andres Klode2011-05-301-4/+4
| | |
* | | apt-pkg/acquire-item.cc: Reject files known to be invalid (LP: #346386) ↵Julian Andres Klode2011-05-301-0/+45
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Closes: #195301) This commit deals with the following cases: - First section of index file (Packages,Sources,Translation) without Package field - Signed release files without GPG data (NODATA) - i18n/Index files without hash sums Handling unsigned Release files is more complicated, and the example code using indexRecords is disabled as it can reject correct Release files without hashes. How we can reliably check unsigned Release files is another question, and not urgent anyway, as it should have no dramatic effect (we could check that it is a valid RFC-822 section, but that's a bit too long to write)
* | * apt-pkg/acquire-item.cc:Ben Finney2011-04-261-1/+1
| | | | | | | | | | - apply fix for poorly worded 'locate file' error message from Ben Finney, thanks! (Closes: #623171)
* | apt-pkg/acquire-item.cc: Only try to rename existing Release files (Closes: ↵Julian Andres Klode2011-04-161-1/+1
| | | | | | | | #622912)
* | * apt-pkg/acquire-item.cc:Julian Andres Klode2011-04-081-0/+20
| | | | | | - Use Release files even if they cannot be verified (LP: #704595)
* | merged from lp:~donkult/apt/sidMichael Vogt2011-04-041-24/+0
|\ \
| * | * apt-pkg/vendor.cc, apt-pkg/vendorlist.cc:David Kalnischkies2011-03-161-24/+0
| | | | | | | | | - mark them as deprecated as they are unused
* | | apt-pkg/acquire-item.cc: Use stat buffer if stat wasJulian Andres Klode2011-04-021-1/+1
|/ / | | | | successful, not if it failed (Closes: #620546)
* | apt-pkg/acquire-item.cc: add some more missing Fail-IgnoreMichael Vogt2011-03-141-4/+10
| |
* | apt-pkg/acquire-item.{cc,h}: mark InRelease with Fail-Ignore to ensure the ↵Michael Vogt2011-03-141-0/+15
| | | | | | | | mirror methods does not retry on each mirror
* | * apt-pkg/acquire-item.cc:Michael Vogt2011-03-111-2/+2
|/ | | | - mark pkgAcqIndexTrans as Index-File to avoid asking the user to insert the CD on each apt-get update
* merged from lp:~donkult/apt/sidMichael Vogt2011-02-081-93/+310
|\
| * - download and use i18n/Index to choose which Translations to downloadDavid Kalnischkies2011-01-281-21/+197
| | | | | | | | * apt-pkg/aptconfiguration.cc: - remove the inbuilt Translation files whitelist
| * - change the internal handling of Extensions in pkgAcqIndexDavid Kalnischkies2011-01-261-49/+65
| | | | | | | | | | - add a special uncompressed compression type to prefer those files * methods/{gzip,bzip}.cc: - print a good error message if FileSize() is zero
| * - try downloading clearsigned InRelease before trying Release.gpgDavid Kalnischkies2011-01-201-5/+49
| | | | | | | | * apt-pkg/deb/deblistparser.cc: - rewrite LoadReleaseInfo to cope with clearsigned Releasefiles
| * * methods/rred.cc:David Kalnischkies2011-01-151-18/+1
|/ | | | | - operate optional on gzip compressed pdiffs * apt-pkg/acquire-item.cc: - don't uncompress downloaded pdiff files before feeding it to rred
* Fix missing space after dot in a message from apt-pkgbubulle@debian.org2010-09-091-1/+1
| | | Translations unfuzzied. Thanks to Holger Wansing.
* * apt-pkg/acquire-item.cc:David Kalnischkies2010-09-091-6/+10
| | | - use also unsigned Release files again (Closes: #596189)
* * apt-pkg/acquire-item.cc:David Kalnischkies2010-08-211-3/+3
| | | | | | | - don't use ReadOnlyGzip mode for PDiffs as this mode doesn't work in combination with the AddFd methods of our hashclasses Add also 2 testcases: one to test pdiffs in general and one to test the handling of compressed indexes.
* mark all "Hash Sum mismatch" strings as translateableDavid Kalnischkies2010-07-111-1/+1
|
* [ Martin Pitt ]David Kalnischkies2010-07-111-4/+24
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * apt-pkg/acquire-item.cc: Fix handling of local (file:/) sourcesmartin@piware.de2010-06-241-1/+1
| |
| * Switch FileFd to not transparently gunzip, since that breaks code which ↵martin@piware.de2010-06-241-2/+2
| | | | | | | | 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
| * 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
| * * apt-pkg/acquire-item.cc:martin@piware.de2010-06-111-0/+2
| | | | | | | | | | - 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.
| * 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.
| * * apt-pkg/acquire-item.cc:martin@piware.de2010-06-101-1/+19
| | | | | | | | | | - 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.
* | sent Last-Modified header also for Translation filesDavid Kalnischkies2010-06-091-3/+10
| |
* | merged from lp:~donkult/apt/sidMichael Vogt2010-06-091-6/+21
|\ \
| * \ - backport forgotten Valid-Until patch from the obsolete experimentalDavid Kalnischkies2010-06-091-1/+13
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | branch to prevent replay attacks better, thanks to Thomas Viehmann for the initial patch! (Closes: #499897) * doc/apt.conf.5.xml: - document the new Valid-Until related options * apt-pkg/contrib/strutl.cc: - split StrToTime() into HTTP1.1 and FTP date parser methods and use strptime() instead of some self-made scanf mangling - use the portable timegm shown in his manpage instead of a strange looking code copycat from wget * ftparchive/writer.cc: - add ValidTime option to generate a Valid-Until header in Release file
| | * | enhance the Valid-Until code a bit by using the correct RFC1123StrToTimeDavid Kalnischkies2010-06-081-7/+9
| | | | | | | | | | | | | | | | method and allow for better translations of the error messages
| | * | * apt-pkg/indexrecords.cc:David Kalnischkies2010-06-081-1/+11
| | | | | | | | | | | | | | | | | | | | - backport forgotten Valid-Until patch from the obsolete experimental branch to prevent replay attacks better, thanks to Thomas Viehmann for the initial patch! (Closes: #499897)
| * | | * apt-pkg/indexrecords.{cc,h}:David Kalnischkies2010-05-291-5/+8
| |/ / | | | | | | | | | | | | - add a constant Exists check for MetaKeys * apt-pkg/acquire-item.cc: - do not try PDiff if it is not listed in the Meta file