summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* fix libapt-inst for >2G debs (closes: #725483)Michael Vogt2013-10-073-11/+15
|
* Merge remote-tracking branch 'donkult/debian/sid' into debian/sidMichael Vogt2013-10-0534-1194/+1921
|\
| * tests: install --no-install-recommends and stunnel4 for travisDavid Kalnischkies2013-10-032-2/+2
| | | | | | | | | | | | stunnel4 is required for https tests Git-Dch: Ignore
| * test: use a multiarch capable dpkg rather than workaroundDavid Kalnischkies2013-10-031-4/+3
| | | | | | | | | | | | | | | | The tests require nowadays a (somewhat) multiarch-capable dpkg, so replace the workaround as marked in the FIXME with a proper install as the workaround isn't working always correctly, letting the test fail. Git-Dch: Ignore
| * do not ++ on erased package pointers in autoremoveDavid Kalnischkies2013-10-031-3/+7
| | | | | | | | | | | | | | Symptom: In an Ubuntu precise chroot (like on travis-ci) test-bug-613420-new-garbage-dependency segfaults in a std::set operator++ on an iterator we have erased previously (but not if run under gdb of course)
| * fix lzma-support detection via xz binaryDavid Kalnischkies2013-10-031-1/+1
| | | | | | | | | | | | Clear() only clears a config option, not removing it and an empty setting still exists. Hence we set the option instead to the xz path so that the later existance check can find a binary for the test
| * use pkgAcqArchive in 'download' for proper errorsDavid Kalnischkies2013-10-035-59/+60
| | | | | | | | | | | | | | With a bit of trickery we can reuse the usual infrastructure we have in place to acquire deb files for the 'download' operation as well, which gains us authentification check & display, error messages, correct filenames and "downloads" from the root-owned archives.
| * put fetch errors in 'source' on our errorstackDavid Kalnischkies2013-10-035-90/+117
| | | | | | | | | | | | | | | | | | refactor the fetching process so that it looks more like the others we have in the hope that we can reuse code in the future. This is a soft interface change as 'source' previously printed errors directly on stderr, while it will now push it onto our usual error stack.
| * refactor onError relabeling of DestFile as '.FAILED'David Kalnischkies2013-10-032-34/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This helps ensure three things: - each error is reported via ReportMirrorFailure - if DestFile doesn't exist, do not attempt rename - renames happen for every error The last one wasn't the case for Size mismatches, which isn't nice, but not a exploitable problem per-se as the file isn't picked up and remains in partial/ where the following download-try will at most take it for a partial request which fails the hashsum verification later on Git-Dch: Ignore
| * tests: fix some problems travis encountersDavid Kalnischkies2013-10-025-48/+54
| | | | | | | | Git-Dch: Ignore
| * don't consider holds for autoremovalDavid Kalnischkies2013-10-013-4/+25
| | | | | | | | | | | | | | | | | | | | | | We can't remove packages which are held back by the user with a hold, so marking them (or its dependencies) as garbage will lead our autoremover into madness – and given that the package is important enough that the user has held it back it can't be garbage (at least at the moment), so even if a front-end wants to use the info just for information display its a good idea to not consider it garbage for them. Closes: 724995
| * handle complete responses to https range requestsDavid Kalnischkies2013-10-019-47/+318
| | | | | | | | | | | | | | | | | | | | | | | | | | Servers might respond with a complete file either because they don't support Ranges at all or the If-Range condition isn't statisfied, so we have to parse the headers curl gets ourself to seek or truncate the file we have so far. This also finially adds the testcase testing a bunch of partial situations for both, http and https - which is now all green. Closes: 617643, 667699 LP: 1157943
| * fix partial (206 and 416) support in httpsDavid Kalnischkies2013-10-011-33/+67
| | | | | | | | | | | | | | As lengthy discussed in lp:1157943 partial https support was utterly broken as a 206 response was handled as an (unhandled) error. This is the first part of fixing it by supporting a 206 response and starting to deal with 416.
| * refactor http client implementationDavid Kalnischkies2013-10-015-889/+1049
| | | | | | | | | | | | | | | | | | | | | | | | | | No effective behavior change, just shuffling big junks of code between methods and classes to split them into those strongly related to our client implementation and those implementing HTTP. The idea is to get HTTPS to a point in which most of the implementation can be shared even though the client implementations itself is completely different. This isn't anywhere near yet though, but it should beenough to reuse at least a few lines from http in https now. Git-Dch: Ignore
| * replace "filesize - 1" trick in http with proper 416 handlingDavid Kalnischkies2013-10-011-6/+21
| | | | | | | | | | | | | | | | Our http client requests the "filesize - 1" for the small edgecase of handling a file which was completely downloaded, but not yet moved to the correct place as we get 416 errors in that case, but as we can handle 416 returns now we just special-case the situation of requesting the exact filesize and handle it as a 200 without content instead.
| * retry without partial data after a 416 responseDavid Kalnischkies2013-10-012-18/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we get a 416 from the server it means the Range we asked for is above the real filesize of the file on the server. Mostly this happens if the server isn't supporting If-Range, but regardless of how we end up with the partial data, the data is invalid so we discard it and retry with a fresh plate and hope for the best. Old behavior was to consider 416 an error and retry with a different compression until we ran out of compression and requested the uncompressed file (which doesn't exist on most mirrors) with an accept line which server answered with "406 Not Acceptable". Closes: 710924
| * add Range and If-Range support in the webserverDavid Kalnischkies2013-09-301-1/+63
| | | | | | | | Git-Dch: Ignore
| * access _config via GET requests in the webserverDavid Kalnischkies2013-09-301-3/+71
| | | | | | | | Git-Dch: Ignore
| * APT has no bugsDavid Kalnischkies2013-09-301-9/+0
| | | | | | | | | | | | | | | | Okay, maybe it does have a "few", but the DDTP issues mentioned in this file are long since gone, so lets just drop the file and look at the PTS instead: http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=apt Git-Dch: Ignore
* | Merge remote-tracking branch 'mvo/bugfix/dpkg-progress-multiarch' into ↵Michael Vogt2013-10-054-28/+123
|\ \ | |/ |/| | | debian/sid
| * Merge remote-tracking branch 'origin/bugfix/dpkg-progress-multiarch' into ↵Michael Vogt2013-10-023-8/+25
| |\ | | | | | | | | | bugfix/dpkg-progress-multiarch
| | * change maxsplit default from "0" to maxintMichael Vogt2013-10-013-3/+7
| | |
| | * improve documentation for StringSplit()Michael Vogt2013-10-012-6/+19
| | |
| * | make dpkg progress slightly nicerMichael Vogt2013-10-021-3/+17
| |/
| * doc updateMichael Vogt2013-09-072-8/+17
| |
| * fix multiarch status-fd progress calculationMichael Vogt2013-09-071-24/+24
| |
| * add maxsplit parameter to StringSplitMichael Vogt2013-09-073-6/+20
| |
| * implement StringSplit() as we need this to fix the dpkg status-fd output parsingMichael Vogt2013-09-073-0/+41
| |
* | test: apt-get source with more than one argumentDavid Kalnischkies2013-09-261-0/+6
| | | | | | | | | | Closes: 722549 Git-Dch: Ignore
* | print-uris prints regardless of quiet-level againDavid Kalnischkies2013-09-262-1/+25
| | | | | | | | | | | | | | | | | | | | While the InstallPackages code was moved from apt-get into the private library the output was moved from (std::)cout to c1out which isn't shown in quiet level 2 (and above), so we flip back to std::cout to ensure that it is always printed as you are not going to use --print-uris if you don't want to see the uris… Closes: 722207
* | compression-neutral message for missing data.tar memberDavid Kalnischkies2013-09-261-2/+1
| | | | | | | | | | | | | | It even reuses the message used for the other check-for members, so one less message to translate (good, as not that many people will ever see it). Closes: 722710
* | pkg from only trusted sources keeps being trustedDavid Kalnischkies2013-09-263-8/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | --allow-unauthenticated switches the download to a pre-0.6 system in which a package can come from any source, rather than that trusted packages can only come from trusted sources. To allow this the flag used to set all packages as untrusted, which is a bit much, so we check now if the package can be acquired via an untrusted source and only if this is the case set it as untrusted. As APT nowadays supports setting sources as trusted via a flag in the sources.list this mode shouldn't be used that much anymore though. [Note that this is not the patch from the BTS] Closes: 617690
* | don't strip :any from dependencies in single-archDavid Kalnischkies2013-09-262-4/+56
| | | | | | | | | | | | | | | | | | | | | | The parser goes a bit to far by stripping :any from dependencies in a single architecture environment. the flag "Multi-Arch: allowed" doesn't care any architecture restrictions in that case (as in single arch everything is native), but it still limits the possible versions statisfying the dependency so stripping :any over-simplifies in upgrade situations from "Multi-Arch: none" to "Multi-Arch: allowed". Closes: 723586
* | Fix typo in apt-private/private-show.cc. Thanks to Benjamin Keresa. Closes: ↵Christian PERRIER2013-09-232-1/+8
| | | | | | | | #724073
* | releasing package apt version 0.9.11.4Michael Vogt2013-09-201-0/+12
| |
* | do not trust FileFd::Eof() in pkgTagFile::Fill()David Kalnischkies2013-09-204-1/+263
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Eof check was added (by me of course) in 0aae6d14390193e25ab6d0fd49295bd7b131954f as part of a fix up ~a month ago (at DebConf). The idea was not that bad, but doesn't make that much sense either as this bit is set by the FileFd based on Actual as well, so this is basically doing the same check again – with the difference that the HitEof bit can still linger from a previous Read we did at the end of the file, but have seek'd away from it now. Combined with the length of entries, entry order and other not that easily controllable conditions you can be 'lucky' enough to hit this problem in a way which even visible (truncating of other fields might not be visible easily, like 'Tags' and others). Closes: 723705 Thanks: Cyril Brulebois
* | add a testcase for 100 char long path truncate bug #689582David Kalnischkies2013-09-121-0/+35
| | | | | | | | Git-Dch: Ignore
* | don't truncate 100 char long paths in tar extractionOskari Saarenmaa2013-09-121-13/+11
| | | | | | | | | | | | | | | | | | | | | | | | When a data.tar.{gz,xz} contains a path name that is exactly 100 characters long, it will get truncated to 99 chars upon extraction in ExtractTar::Go(). Using all of the 100 available characters for the filename seems to be new behaviour in gnu tar. Closes: #689582 Thanks: Mika Eloranta for the testcase!
* | Fix regression of "apt-cache unmet -i", thanks to Daniel Schepler (closes: ↵Michael Vogt2013-09-102-1/+7
| | | | | | | | #722324)
* | prepare uploadMichael Vogt2013-09-101-0/+15
| |
* | use FileFd in HashSum test to unbreak non-linux portsDavid Kalnischkies2013-09-031-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | The testcode happily mixes FILE* operations and direct access to fds which is even a bit suprising that it works on linux and worked so long for non-linux ports, so we switch to usage of FileFd instead which provides us with simple fd-only operations. Its overkill for this test as its a bare file and we ask for the descriptor all the time, but it shouldn't hurt to implicitly test it a bit this way. Closes: 721723 Thanks: Aaron M. Ucko
* | fix vim-style foldmarkerDavid Kalnischkies2013-09-037-50/+39
|/ | | | Git-Dch: Ignore
* Remove invalid "-f" option for apt-get checkMichael Vogt2013-09-011-1/+1
| | | | Thanks to Philipp Weis (closes: #721477)
* Merge branch 'debian/sid' of ssh://git.debian.org/git/apt/apt into debian/sidMichael Vogt2013-09-013-2/+19
|\
| * fix typo (mkostemp->mkstemp)Michael Vogt2013-08-311-1/+1
| |
| * Merge remote-tracking branch 'mvo/feature/install-progress' into debian/sidMichael Vogt2013-08-282-1/+18
| |\
| | * Add DPkgPM::Progress for terminal install progressMichael Vogt2013-07-112-1/+18
| | |
* | | prepare upload of 0.9.12Michael Vogt2013-08-311-2/+9
|/ /
* | Merge remote-tracking branch 'mvo/feature/upgrade-with-cmdline' into debian/sidMichael Vogt2013-08-284-40/+55
|\ \
| * | allow pkg manipulation in the upgrade/dist-upgrade commandline, e.g. apt-get ↵Michael Vogt2013-08-274-32/+54
| | | | | | | | | | | | dist-upgrade 2vcard- 4g8+