summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | support Acquire::GzipIndexes in dumpavailDavid Kalnischkies2014-06-102-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes: 742835
| * | | | | | separate implementation from declaration of TryTo{Install,Remove}David Kalnischkies2014-06-092-149/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Git-Dch: Ignore
| * | | | | | do not revert candidate for protected packagesDavid Kalnischkies2014-06-072-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 21b3eac8 I promoted the check for installable dependencies to a pre-install check, which also reverts to a known good candidate (the installed version) if it fails. This revert was done even for user requested candidate switches which disabled our Broken detection so that install requests which are impossible to satisfy do not fail anymore, but print an (incomplete) solution proposal and then exit successfully. Closes: 745046
| * | | | | | Italian program translation updateMilo Casagrande2014-06-071-78/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes: 750009
| * | | | | | cmdline/apt-helper.cc: use less generic description/short-descriptionMichael Vogt2014-06-061-1/+2
| | | | | | |
| * | | | | | use 'native' instead of 'amd64' as pkg archDavid Kalnischkies2014-05-301-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Git-Dch: Ignore
| * | | | | | update symbols filesDavid Kalnischkies2014-05-302-21/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Git-Dch: ignore
| * | | | | | show current/total testcase statistic also in concise modeDavid Kalnischkies2014-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Git-Dch: Ignore
| * | | | | | support parsing EDSP requests Architecture{,s} stanzaDavid Kalnischkies2014-05-303-0/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds also a small testcase for EDSP Git-Dch: Ignore
| * | | | | | without a filename we can't stat pipesDavid Kalnischkies2014-05-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EDSP code uses pipes opened via an FD as sources and later for those files modification times and filesize are read - but never really used again. The result we get from FileFd is probably wrong, but as we don't use it anyway, we just don't fallback if we have nothing to fallback to Git-Dch: Ignore
| * | | | | | print error stack on failure of 'apt' solverDavid Kalnischkies2014-05-301-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Git-Dch: ignore
| * | | | | | check exit status of external solversDavid Kalnischkies2014-05-302-10/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Solvers are supposed to exit successfully even if they haven't found a solution, but a solver which fails drastically (like e.g. segfaults) should be detected and dealt with accordingly instead of ignored.
| * | | | | | if Resolver fails, do not continue even if not brokenDavid Kalnischkies2014-05-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This can happen if the request is already a well-formed request all by itself (e.g. the package has no dependencies), but the resolver found a reason to not accept it as solution. Our edsp 'dump' solver e.g. shouldn't be able to trigger install, which it does otherwise.
| * | | | | | Merge EDSP 0.5 w/ multi-arch support for external solversDavid Kalnischkies2014-05-302-10/+54
| |\ \ \ \ \ \ | | |_|/ / / / | |/| | | | | | | | | | | | "I am going to merge it tomorrow…"
| | * | | | | EDSP: add APT-Release field to Package stanzasStefano Zacchiroli2014-05-042-2/+23
| | | | | | |
| | * | | | | EDSP: add Source field to Package stanzasStefano Zacchiroli2014-05-041-0/+6
| | | | | | |
| | * | | | | EDSP: add Architecture(s) multi-arch fields to the Request stanzaStefano Zacchiroli2014-05-042-1/+21
| | | | | | |
| | * | | | | EDSP: bump protocol version to 0.5Stefano Zacchiroli2014-05-042-3/+3
| | | | | | |
| | * | | | | EDSP doc: fix typo in Request stanza descriptionStefano Zacchiroli2014-05-041-6/+3
| | | | | | |
| * | | | | | Merge remote-tracking branch 'mvo/debian/sid' into debian/sidMichael Vogt2014-05-2910-13/+42
| |\ \ \ \ \ \ | | | |/ / / / | | |/| | | |
| | * | | | | Fix warning about uninitialized variableMichael Vogt2014-05-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported-By: clang++ -Werror
| | * | | | | Fix uninitialized valueMichael Vogt2014-05-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported-By: scan-build
| | * | | | | use free() instead of delete[] in debSrcRecordParser::~debSrcRecordParserMichael Vogt2014-05-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Buffer was allocated using strndup() so we need to free it using free() instead of delete[]
| | * | | | | Do not try to cast a pkgDepCache::Policy to a pkgCacheMichael Vogt2014-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix incorrect cast in pkgDepCache::Policy::GetCandidateVer() Reported-By: clang -fsanitize=address -fno-omit-frame-pointer
| | * | | | | use free() instead of delete() when realloc is usedMichael Vogt2014-05-276-9/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ContentsExtract::~ContentsExtract() needs to use free() because Data got allocated via realloc() Reported-By: clang -fsanitize=address -fno-omit-frame-pointer
| | * | | | | Merge remote-tracking branch 'upstream/debian/sid' into debian/sidMichael Vogt2014-05-2776-57864/+58319
| | |\ \ \ \ \ | | | |_|_|_|/ | | |/| | | |
| * | | | | | (try to) fix travis-ci build failuresDavid Kalnischkies2014-05-293-6/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dpkg on Ubuntu 12.04 does not seem to support parsing arch-specific dependencies, so we try to detect if we face such a dpkg in the test. In the other test the order depends on libdb, which changes per arch, so we just run it through our sorting binary and be happy (hopefully). Git-Dch: Ignore
* | | | | | | Fix more warnings from clangMichael Vogt2014-05-297-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported-By: clang++ -Werror Conflicts: apt-pkg/acquire-item.cc apt-pkg/acquire-item.h apt-pkg/deb/debmetaindex.h
* | | | | | | cmdline/apt-extracttemplates.cc: remove unused private varMichael Vogt2014-05-292-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported-By: clang -Wall
* | | | | | | Merge remote-tracking branch 'upstream/debian/sid' into debian/experimentalMichael Vogt2014-05-2912-1157/+1684
|\| | | | | | | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | Conflicts: test/integration/test-bug-747261-arch-specific-conflicts
| * | | | | update Doxyfile to 1.8.7 to silence deprecation warningsDavid Kalnischkies2014-05-221-943/+1365
| | | | | | | | | | | | | | | | | | | | | | | | Git-Dch: ignore
| * | | | | fix screen width detection for apt/apt-get listsSebastian Schmidt2014-05-222-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3163087b moved SigWinch(int) from apt-get.cc to private-output.cc without moving #include <sys/ioctl.h>, making SigWinch a nop. Closes: 748430, 747942
| * | | | | fix tight loop detection and temporary removesDavid Kalnischkies2014-05-226-191/+251
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As outlined in #748355 apt segfaulted if it encountered a loop between a package pre-depending on a package conflicting with the previous as it ended up in an endless loop trying to unpack 'the other package'. In this specific case as an essential package is involved a lot of force needs to be applied, but can also be caused by 'normal' tight loops and highlights a problem in how we handle breaks which we want to avoid. The fix comes in multiple entangled changes: 1. All Smart* calls are guarded with loop detection. Some already had it, some had parts of it, some did it incorrect, and some didn't even try. 2. temporary removes to avoid a loop (which is done if a loop is detected) prevent the unpack of this looping package (we tried to unpack it to avoid the conflict/breaks, but due to a loop we couldn't, so we remove/deconfigure it instead which means we can't unpack it now) 3. handle conflicts and breaks very similar instead of duplicating most of the code. The only remaining difference is, as it should: deconfigure is enough for breaks, for conflicts we need the big hammer
| * | | | | consistently fail if Smart* packagemanager actions failDavid Kalnischkies2014-05-222-51/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These failure conditions come with an error message attached and the conditions aren't workaroundable (otherwise this would have been done instead of returning failure), so not erroring out here means that we execute dpkg later on with a known not-working ordering adding insult (our own error messages at the end) to injury (dpkg failure).
| * | | | | mark as Automatic/Downloadable pure as gcc suggestsDavid Kalnischkies2014-05-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Git-Dch: Ignore Reported-By: gcc
| * | | | | make test independent from the actual Install-SizeDavid Kalnischkies2014-05-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Git-Dch: Ignore
| * | | | | add an additional test for arch specific conflictsDavid Kalnischkies2014-05-161-0/+36
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In bugreport #747261 I confirmed with this testcase that apt actually supports the requested architecture-specific conflicts already since 2012 with commit cef094c2ec8214b2783a2ac3aa70cf835381eae1. The old test only does simulations which are handy to check apt, this one builds 'real' packages to see if dpkg agrees with us. Git-Dch: Ignore
| * | | | Never parse Version/Architecture tags in a Translation-$lang fileMichael Vogt2014-05-153-1/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Version/Architecture information in a Translation-$lang file is not allowed, so don't try to parse it. This is a fix for a bugreport where a Translation-en file contained the content of the regular Packages file (probably due to local FS corruption). This lead to strange error messages on file download. Thanks to Thomas Reusch for the report.
* | | | | Merge remote-tracking branch 'donkult/debian/experimental' into ↵Michael Vogt2014-05-1452-1163/+2099
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | debian/experimental Conflicts: apt-pkg/acquire-item.cc apt-pkg/acquire-item.h
| * | | | | (try to) fix travis-ci build failuresDavid Kalnischkies2014-05-123-6/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dpkg on Ubuntu 12.04 does not seem to support parsing arch-specific dependencies, so we try to detect if we face such a dpkg in the test. In the other test the order depends on libdb, which changes per arch, so we just run it through our sorting binary and be happy (hopefully). Git-Dch: Ignore
| * | | | | add an additional test for arch specific conflictsDavid Kalnischkies2014-05-101-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In bugreport #747261 I confirmed with this testcase that apt actually supports the requested architecture-specific conflicts already since 2012 with commit cef094c2ec8214b2783a2ac3aa70cf835381eae1. The old test only does simulations which are handy to check apt, this one builds 'real' packages to see if dpkg agrees with us. Git-Dch: Ignore
| * | | | | invalid cache if architecture set doesn't matchDavid Kalnischkies2014-05-105-10/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The cache heavily depends on the architecture(s) it is build for, especially if you move from single- to multiarch. Adding a new architecture to dpkg therefore has to be detected and must invalidate the cache so that we don't operate on incorrect data. The incorrect data will prevent us from doing otherwise sensible actions (it doesn't allow bad things to happen) and the recovery is simple and automatic in most cases, so this hides pretty well and is also not as serious as it might sound at first. Closes: 745036
| * | | | | improve pkgTagSection scanning and parsingDavid Kalnischkies2014-05-105-104/+365
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes the 256 fields limit, deals consistently with spaces littered all over the place and is even a tiny bit faster than before. Even comes with a bunch of new tests to validate these claims.
| * | | | | parse and retrieve multiple Descriptions in one recordDavid Kalnischkies2014-05-098-95/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems unlikely for now that proper archives will carry multiple Description-* stanzas in the Packages (or Translation-*) file, but sometimes apt eats its own output as shown by the usage of the CD team and it would be interesting to let apt output multiple translations e.g. in 'apt-cache show'.
| * | | | | reenable pipelining via hashsum reordering supportDavid Kalnischkies2014-05-095-65/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that methods have the expected hashes available they can check if the response from the server is what they expected. Pipelining is one of those areas in which servers can mess up by not supporting it properly, which forced us to disable it for the time being. Now, we check if we got a response out of order, which we can not only use to disable pipelining automatically for the next requests, but we can fix it up just like the server responded in proper order for the current requests. To ensure that this little trick works pipelining is only attempt if we have hashsums for all the files in the chain which in theory reduces the use of pipelining usage even on the many servers which work properly, but in practice only the InRelease file (or similar such) will be requested without a hashsum – and as it is the only file requested in that stage it can't be pipelined even if we wanted to. Some minor annoyances remain: The display of the progress we have doesn't reflect this change, so it looks like the same package gets downloaded multiple times while others aren't at all. Further more, partial files are not supported in this recovery as the received data was appended to the wrong file, so the hashsum doesn't match. Both seem to be minor enough to reenable pipelining by default until further notice through to test if it really solves the problem. This therefore reverts commit 8221431757c775ee875a061b184b5f6f2330f928.
| * | | | | tell download methods the expected hashesDavid Kalnischkies2014-05-093-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we have all hashes in the acquire system, pass the info down to the methods, so that it can use it in the request and/or to precheck the response.
| * | | | | promote ExpectedHashes to a pkgAcquire::Item memberDavid Kalnischkies2014-05-092-102/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Beside being another big API break with hopefully zero fallout in reality it avoids having the same member and helper code in each and every subclass.
| * | | | | deal with hashes in ftparchive more dynamic as wellDavid Kalnischkies2014-05-095-300/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that libapts acquire system happily passes around hashes and can be made to support new ones without an ABI break in the future, we can free ftparchive from all the deprecation warnings the last commit introduced for it. The goal here isn't to preserve ABI as we have none to keep here, but to help avoiding introduction problems of 'new' hashes later as bugs creep into the copy&paste parts, so short/less of them is good.
| * | | | | use HashStringList in the acquire systemDavid Kalnischkies2014-05-0920-361/+507
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is not very extensible to have the supported Hashes hardcoded everywhere and especially if it is part of virtual method names. It is also possible that a method does not support the 'best' hash (yet), so we might end up not being able to verify a file even though we have a common subset of supported hashes. And those are just two of the cases in which it is handy to have a more dynamic selection. The downside is that this is a MAJOR API break, but the HashStringList has a string constructor for compatibility, so with a bit of luck the few frontends playing with the acquire system directly are okay.
| * | | | | use 'best' hash for source authenticationDavid Kalnischkies2014-05-095-158/+385
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Collect all hashes we can get from the source record and put them into a HashStringList so that 'apt-get source' can use it instead of using always the MD5sum. We therefore also deprecate the MD5 struct member in favor of the list. While at it, the parsing of the Files is enhanced so that records which miss "Files" (aka MD5 checksums) are still searched for other checksums as they include just as much data, just not with a nice and catchy name. LP: 1098738