summaryrefslogtreecommitdiff
path: root/test/integration/test-apt-get-source
Commit message (Collapse)AuthorAgeFilesLines
* use pkgCache::VS instead of pkgDepCache::VS()David Kalnischkies2016-02-031-159/+0
| | | | | | | | | | | | | | The later just calls the earlier, but the later needs the fullblown dependency cache to be initialized, which is a very costly operation and isn't done anymore that early in the run as we would need to throw away and rebuild it again after we got all the information about source pkgs. As we end up with a nullptr for the pkgDepCache, we use a slightly longer calling convention to make sure that we use the pkgCache directly, avoiding nullptr induced segfaults and costly operations. Git-Dch: Ignore Reported-By: Balint Reczey <balint@balintreczey.hu>
* get sources for packages in multiple releases againDavid Kalnischkies2016-01-261-2/+2
| | | | | | | | | In 321213f0dcdcdaab04e01663e7a047b261400c9c Andreas Cadhalpun corrected the incorrect overriding of earlier better-fitting results with later (semi-)matches – but that broke the case in which packages are in multiple releases in the same version (and the user has both releases configured). Closes: 812497
* parse version correctly from binary Source fieldDavid Kalnischkies2016-01-261-0/+20
| | | | | | | | | | | In commit a221efc331693f8905da870141756c892911c433 I promoted the source package name and version to the binary cache for faster access by e.g. EDSP, but due to changing the interpretation length to soon we always ignored the version part of the Source field, so that packages ended up having the binary version as source version – which while usually just fine it is wrong for binary rebuilds. Closes: 812492
* tests: support spaces in path and TMPDIRDavid Kalnischkies2015-12-191-2/+2
| | | | | | | This doesn't allow all tests to run cleanly, but it at least allows to write tests which could run successfully in such environments. Git-Dch: Ignore
* tests: fix typos, correct helpmsgs and test testsDavid Kalnischkies2015-11-291-1/+6
| | | | Git-Dch: Ignore
* do not override exact targetrelease matches with lesser matchesAndreas Cadhalpun2015-11-291-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The relevant testcases are in test/integration/test-apt-get-source. There is a test for #731853 that is supposed to "ensure that apt will pick the higher version number" of 0.0.1 (stable) and 0.1 (stable). However, this works by pure chance, as simply reversing the order of the two insertsource lines makes the test fail. So #731853 isn't really fixed, yet. Actually, that's related to the problem I reported, as the underlying issue for both is the same: In the FindSrc function apt chooses a new 'best hit', if either * there is a target release and it matches the release of the package, * or the version of the package is higher than the last best hit. Consider having 1.0 (stable), 2.0 (unstable) and 1.5 (unstable), in this order. Looking for the version in stable, apt first selects 1.0, because the release matches the target release, but then subsequently selects 2.0, because the version is higher. Looking for the version in unstable, apt first selects 2.0, because the release matches the target release, but then subsequently selects 1.5, because the release also matches the target release. The correct way would be to choose a new 'best hit', if either * there is a target release and it matches the release of the package, * or there is no target release and the version is higher than the last best hit. Closes: 746412 Mail-Reference: <565A604B.7090104@googlemail.com> Mail-Archive: https://lists.debian.org/debian-devel/2015/11/msg00470.html
* implement apt-get source msg 'Please use: $vcs' for gitDavid Kalnischkies2015-09-141-0/+19
| | | | | A bit unfair that only Bzr had this message. Lets at least print it for git as well with the option of adding more later without string changes.
* Consider md5sum no longer a usable hashMichael Vogt2015-09-011-8/+8
| | | | | The md5sum hash is broken since some time and we should no longer consider it a usable hash. Also update the tests to reflect this.
* tests: check apt-get source release name switching with -tDavid Kalnischkies2015-08-271-0/+9
| | | | Git-Dch: Ignore
* condense parallel requests with the same hashes to oneDavid Kalnischkies2015-06-151-22/+20
| | | | | | | | | | | | | It shouldn't be too common, but sometimes people have multiple mirrors in the sources or otherwise repositories with the same content. Now that we gracefully can handle multiple requests to the same URI, we can also fold multiple requests with the same expected hashes into one. Note that this isn't trying to find oppertunities for merging, but just merges if it happens to encounter the oppertunity for it. This is most obvious in the new testcase actually as it needs to delay the action to give the acquire system enough time to figure out that they can be merged.
* test exitcode as well as string equalityDavid Kalnischkies2015-03-161-9/+9
| | | | | | | | We use test{success,failure} now all over the place in the framework, so its only consequencial to do this in the situations in which we test for a specific output as well. Git-Dch: Ignore
* reenable support for -s (and co) in apt-get sourceDavid Kalnischkies2014-10-201-0/+4
| | | | | | | | The conversion to accept only relevant options for commands has forgotten another one, so adding it again even through the usecase might very well be equally good served by --print-uris. Closes: 742578
* Fix typos in documentation (codespell)Michael Vogt2014-02-221-1/+1
|
* test apt-get source release selection with suite and codenameDavid Kalnischkies2014-01-151-1/+13
| | | | Git-Dch: Ignore
* clarify error message when apt-get source=ver fails, print a real error ↵Michael Vogt2013-12-121-1/+1
| | | | message instead of "ignoring"
* user-requested version tag gets precedence in apt-get source -t dist ↵Michael Vogt2013-12-101-0/+5
| | | | pkg=version requests
* fix typoMichael Vogt2013-12-101-2/+2
|
* improve test for #731853 and commentsMichael Vogt2013-12-101-3/+5
|
* if there is only deb-src pick higest version in deb-src release matchingMichael Vogt2013-12-101-2/+7
|
* add test for aptget source for unavailable packageMichael Vogt2013-12-041-0/+5
|
* further refactor, extract GetReleaseForSourceRecord() out of FindSrc(), ↵Michael Vogt2013-12-041-8/+18
| | | | write out the selection notice to c1out to be consistent with the rest of the source
* add test, deal with InReleaseMichael Vogt2013-12-041-0/+45