summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | | | | | | | | | * basic error reporting from apt in place now (ReportMirrorFailures())Michael Vogt2007-01-171-1/+9
| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | merged from apt--mvoMichael Vogt2006-12-071-1/+1
| |\| | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | fix compiler warning: reaching end of non-void methodDavid Kalnischkies2010-05-041-0/+1
| | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | merge from the debian-sid branchDavid Kalnischkies2010-05-041-2/+12
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | merge from the mvo branchMichael Vogt2010-05-041-2/+12
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | | | | * [ Abi break ] apt-pkg/acquire-item.{cc,h}:Michael Vogt2010-04-281-2/+12
| | | |_|_|_|_|_|_|_|_|_|_|_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add "IsIndexFile" to constructor of pkgAcqFile so that it sends the right cache control headers
| | * | | | | | | | | | | | | | * French manpage translation updateMichael Vogt2010-01-081-13/+49
| | | |_|_|_|_|_|_|_|_|_|_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * spot & fix various typos in all manpages * German manpage translation update * cmdline/apt-cache.cc: - remove translatable marker from the "%4i %s\n" string * buildlib/po4a_manpage.mak: - instruct debiandoc to build files with utf-8 encoding * buildlib/tools.m4: - fix some warning from the buildtools * apt-pkg/acquire-item.cc: - add configuration PDiffs::Limit-options to not download too many or too big patches (Closes: #554349) * debian/control: - let all packages depend on ${misc:Depends} * share/*-archive.gpg: - remove the horrible outdated files. We already depend on the keyring so we don't need to ship our own version * cmdline/apt-key: - errors out if wget is not installed (Closes: #545754) - add --keyring option as we have now possibly many * methods/gpgv.cc: - pass all keyrings (TrustedParts) to gpgv instead of using only one trusted.gpg keyring (Closes: #304846) * methods/https.cc: - finally merge the rest of the patchset from Arnaud Ebalard with the CRL and Issuers options, thanks! (Closes: #485963)
* | / | | | | | | | | | | | | * apt-pkg/acquire-item.cc:David Kalnischkies2010-04-091-7/+21
|/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Acquire::ForceHash to force method for expected hash - display MD5Sum in --print-uris if not forced to use another method instead of displaying the strongest available (Closes: #576420)
* | | | | | | | | | | | | | add configuration PDiffs::Limit-options (FileLimit and SizeLimit) toDavid Kalnischkies2010-01-021-13/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not download too many or too big patches (Closes: #554349)
* | | | | | | | | | | | | | allow also to skip the last patch if target is reached in acquire-item.cc,David Kalnischkies2009-11-251-3/+11
|/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | thanks Bernhard R. Link! (Closes: #545699)
* | | | | | | | | | | | | * apt-pkg/acquire-item.cc:Michael Vogt2009-08-281-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - do not segfault on invalid items (closes: #544080)
* | | | | | | | | | | | | "backport" the APT::Configuration class to apt-sidDavid Kalnischkies2009-08-251-38/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can use it to simplify the internal code to operate with Acquire::CompressionTypes group. This also made it possible to set this setting with the -o flag.
* | | | | | | | | | | | | Add a Acquire::CompressionTypes config variable from there theDavid Kalnischkies2009-08-121-30/+49
| |_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | acquire-items choose which compression file they should (try first to) download to easily add new or change the order of the compression types. And because it is easy now we directly add builtin lzma support. The compression ratio is better than bzip2 but we prefer the later for now as no (official) mirror uses lzma, so this would only generate useless hits on the servers. Maybe sometime in the future lzma will be the default... [apt-pkg/acquire-item.cc] - use configsettings for dynamic compression type use and order. Based on a patch by Jyrki Muukkonen, thanks! (LP: #71746) [apt-pkg/init.cc] - add default configuration for compression types and add lzma support. Order is now bzip2, lzma, gzip, none (Closes: #510526) [ftparchive/writer.cc] - add lzma support also here, patch for this (and inspiration for the one above) by Robert Millan, thanks!
* | | | | | | | | | | | add the various foldmarkers in apt-pkg & cmdline (no code change)David Kalnischkies2009-06-301-62/+40
| |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | |
* | | | | | | | | | | add fixme for the future flJustExtensionMichael Vogt2008-10-291-0/+4
| | | | | | | | | | |
* | | | | | | | | | | apt-pkg/acquire-item.cc: do not hardcode "Packages" or "Sources" in the ↵Michael Vogt2008-10-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (generic) acquire-item.cc code
* | | | | | | | | | | apt-pkg/acquire-item.cc: fixed my incorrect use of flExtensionMichael Vogt2008-10-291-3/+3
| | | | | | | | | | |
* | | | | | | | | | | * apt-pkg/acquire-item.cc:Michael Vogt2008-10-281-8/+21
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added fallback to uncompressed 'Packages' if neither 'bz2' nor 'gz' available. (Closes: #409284) * apt-pkg/algorithm.cc: - Strip username and password from source URL in error message. (Closes: #425150)
| * | | | | | | | | | Fixed error output when fallback'ed to uncompressed Packages/Sources.Eugene V. Lyubimkin2008-10-251-2/+2
| | | | | | | | | | |
| * | | | | | | | | | Added fallback to uncompressed files while acquiring index files (Sources ↵Eugene V. Lyubimkin2008-10-251-6/+19
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and Packages)
* | | | | | | | | / * apt-pkg/acquire-item.{cc,h}:Michael Vogt2007-12-071-6/+15
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | - make the authentication download code more robust against servers/proxies with broken If-Range implementations
* | | | | | | | | apt-pkg/acquire-item.cc:Michael Vogt2007-10-051-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - do not unlink() on normal i-m-s hit, this fixes the problem that local repository files got a i-m-s hit too and got removed test/pre-upload-check.py - add test for local Packages.gz file removal - add test for leftover files in partial/
* | | | | | | | | - apt-pkg/acquire-item.cc: likewise;Otavio Salvador2007-10-021-1/+1
| | | | | | | | |
* | | | | | | | | * apt-pkg/acquire-item.cc:Michael Vogt2007-09-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fix typo
* | | | | | | | | * apt-pkg/acquire-item.cc:Michael Vogt2007-09-271-1/+1
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fix crash in diff acquire code * apt-pkg/contrib/mmap.cc: - don't fail if msync() returns > 0
* | | | | | | | * apt-pkg/pkgcachegen.cc:Michael Vogt2007-08-091-3/+0
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | - increase default mmap size * tests/local-repo: - added local repository testcase
* | | | | | | (ABI break)Michael Vogt2007-08-031-74/+59
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * merged apt--sha256 branch to fully support the new sha256 checksums in the Packages and Release files (ABI break)
| * | | | | | | * apt-pkg/acquire-item.cc:Michael Vogt2007-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - only verify checksum in pkgAcqFile if we actually have one
| * | | | | | | * apt-pkg/acquire-item.{cc,h}:Michael Vogt2007-07-301-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - rename "hash" into ExpectedHash in pkgAcqFile, pkgAcqIndex - add missing HashSum() call to class pkgAcqIndex - use the data provided by acquire-method (and send via the {SHA256,SHA1,MD5Sum}-Hash tag when comparing the hash, this avoids calculating the hash twice (just like old libapt) * apt-pkg/acquire-method.cc: - send MD5Sum-Hash tag to libapt to be consistant with HashString::SupportedHashes() * apt-pkg/acquire-worker.cc: - check with "Owner->HashSum().HashType()" what hash the frontend is expecting and pass it to pkgAcquireItem::Done() in the new HashString format - add some debugging output * apt-pkg/contrib/hashes.cc: - fix off-by-one error when constructing a HashString from a single input string * apt-pkg/contrib/hashes.h: - add "HashType()" method * apt-pkg/init.h, apt-pkg/makefile, methods/makefile: - break ABI
| * | | | | | | * apt-pkg/acquire-item.cc:Michael Vogt2007-07-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - md5sum -> hashsum
| * | | | | | | * implement sha256/sha1/md5 checking with proper backward compatibilityMichael Vogt2007-07-261-71/+56
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | and fallback
* | | | | | | * apt-pkg/acquire-item.cc:Michael Vogt2007-08-031-7/+12
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - remove zero size files on I-M-S hit * methods/https.cc: - only send LastModified if we actually have one - send range request with if-range - delete failed downloads
| * | | | | | * methods/https.cc:Michael Vogt2007-08-021-7/+13
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - only send i-m-s if last-modified is > 0 - instead of resume send a range: if-range: custom header - merge 304 detection patch from thom may (thanks!) * apt-pkg/acquire-item.cc: - remove empty files on i-m-s hits from partial/
* | | | | | * Fix compilation warnings:Otavio Salvador2007-07-101-3/+3
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - apt-pkg/contrib/configuration.cc: wrong argument type; - apt-pkg/deb/dpkgpm.cc: wrong signess; - apt-pkg-acquire-item.cc: wrong signess and orderned initializers; - methods/https.cc: - type conversion; - unused variable; - changed SetupProxy() method to void;
* | | | | * revert bits of the acquire-item merge that broke the Michael Vogt2007-06-071-14/+13
| | | | | | | | | | | | | | | | | | | | description display
* | | | | * merged the debian/experimental changes backMichael Vogt2007-06-061-9/+41
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into the debian/sid branch * merged from Christian Perrier: * mr.po: New Marathi translation Closes: #416806 * zh_CN.po: Updated by Eric Pareja Closes: #416822 * tl.po: Updated by Eric Pareja Closes: #416638 * gl.po: Updated by Jacobo Tarrio * da.po: Updated by Claus Hindsgaul * fr.po: Remove a non-breakable space for usability * ru.po: Updated Russian translation. Closes: #405476 * *.po: Unfuzzy after upstream typo corrections * buildlib/archtable: - added support for sh3/sh4 (closes: #424870) - added support for m32r (closes: #394096) * buildlib/systemtable: - added support for lpia * configure.in: - check systemtable for architecture mapping too * Package that contains tall the new features * Removed all #pragma interface/implementation * Branch that contains tall the new features: * translated package descriptions * task install support * automatic dependency removal (thanks to Daniel Burrows) * merged support for the new dpkg "Breaks" field (thanks to Ian Jackson) * handle network failures more gracefully on "update" * support for unattended-upgrades (via unattended-upgrades package) * added apt-transport-https method * merged "install-recommends" branch (ABI break): - new "--install-recommends" - install new recommends on "upgrade" if --install-recommends is given - new "--fix-policy" option to install all packages with unmet important dependencies (usefull with --install-recommends to see what not-installed recommends are on the system) - fix of recommended packages display (only show CandidateVersion fix or-group handling) * merged "install-task" branch (use with "apt-get install taskname^") * Applied patch from Daniel Schepler to make apt bin-NMU able. * eu.po: Updated * fix apt-get dist-upgrade * fix warning if no /var/lib/apt/extended_states is present * don't download Translations for deb-src sources.list lines * apt-pkg/tagfile.cc: - support not-mmapable files again * added support for i18n of the package descriptions * added support for aptitude like auto-install tracking (a HUGE HUGE thanks to Daniel Burrows who made this possible) * synced with the http://people.debian.org/~mvo/bzr/apt/debian-sid branch * build from http://people.debian.org/~mvo/bzr/apt/debian-experimental * apt-pkg/depcache.cc: - added Debug::pkgDepCache::AutoInstall (thanks to infinity) * apt-pkg/acquire-item.cc: - fix missing chmod() in the new aquire code (thanks to Bastian Blank, Closes: #367425) * merged from http://www.perrier.eu.org/debian/packages/d-i/level4/apt-main: * sk.po: Completed to 512t * eu.po: Completed to 512t * fr.po: Completed to 512t * sv.po: Completed to 512t * Update all PO and the POT. Gives 506t6f for formerly complete translations * Fix a incorrect example in the man-page (closes: #282918)
| * \ \ \ \ * merged with the apt--mvo branchMichael Vogt2007-05-021-1/+8
| |\ \ \ \ \ | | | |_|/ / | | |/| | |
| * | | | | * merged the apt-breaks-iwj branchMichael Vogt2006-12-141-7/+13
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | * pulled in the other remaining ubuntu changes
| | * \ \ \ \ * merged with apt--mvoMichael Vogt2006-12-141-1/+1
| | |\ \ \ \ \ | | | | |/ / / | | | |/| / / | | | |_|/ / | | |/| | |
| | * | | | * merged ddtp supportMichael Vogt2006-08-111-0/+29
| | |\ \ \ \
| | * \ \ \ \ * merged with mainlineMichael Vogt2006-08-011-1/+1
| | |\ \ \ \ \ | | | | |_|_|/ | | | |/| | |
| | * | | | | * more work for the DefaultAptSources specMichael Vogt2006-02-211-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | apt-pkg/acquire-item.h: - add new pkgAcquire::Item::StatTransientNetworkError status apt-pkg/acquire-item.cc: - if we get a StatTransientNetworkError use old sigfile and indexfiles apt-pkg/acquire-worker.cc: - set StatTransientNetworkError on "Timeout", "TmpResolveFailure", "ConnectionRefused" cmdline/apt-get.cc: - handle a StatTransientNetworkError different than a normal error (warning instead of error)
| | * | | | | * handle network failures more gracefully (default apt sources spec)Michael Vogt2006-02-211-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | apt-pkg/acquire-item.cc: - on network failures (Timeout,ResolveFailure,ConnectionRefused) move the old (known good) sigfile back and don't touch the indexfiles cmdline/apt-get.cc: - don't fail on apt-get update problems but issue a warning instead
| * | | | | | * merged from the apt--pdiff branchMichael Vogt2006-12-141-11/+12
| |\ \ \ \ \ \
| | * | | | | | * apt-pkg/acquire-item.ccMichael Vogt2006-12-071-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - more usefull description of the downloaded patches
| | * | | | | | merged with apt--mvoMichael Vogt2006-12-071-30/+73
| | |\ \ \ \ \ \ | | | | |_|_|/ / | | | |/| | | |
| | * | | | | | * apt-pkg/acquire-item.cc:Michael Vogt2006-12-071-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - merged the NMU pdiff fix and make the code a bit more readable
| * | | | | | | * merged with apt--debian-sidMichael Vogt2006-12-141-1/+1
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ * merged debian-sidMichael Vogt2006-08-151-0/+3
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * updated changelog
| * \ \ \ \ \ \ \ \ * merged with mainlineMichael Vogt2006-07-261-1/+1
| |\ \ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / / | | |/| | | | | | |