summaryrefslogtreecommitdiff
path: root/test/integration/test-apt-get-build-dep-file
Commit message (Collapse)AuthorAgeFilesLines
* allow empty build-dependency fields in the parserDavid Kalnischkies2017-09-261-0/+1
| | | | | | | | | | | APT used to parse only wellformed files produced by repository creation tools which removed empty files as pointless before apt would see them. Now that apt can be told to parse e.g. debian/control files directly, it needs to be a little more accepting through: We had this with comments already, now let it deal with the far more trivial empty fields. Closes: #875363
* Do not package names representing .dsc/.deb/... filesJulian Andres Klode2017-02-101-7/+12
| | | | | | | | | | | | | | | | | | | | | In the case of build-dep and other commands where a file can be passed we must make sure not to normalize the path name as that can have odd side effects, or well, cause the operation to do nothing. Test for build-dep-file is adjusted to perform the vcard check once as "vcard" and once as "VCard", thus testing that this solves the reported bug. We inline the std::transform() and optimize it a bit to not write anything in the common case (package names are defined to be lowercase, the whole transformation is just for names that should not exist...) to counter the performance hit of the added find() call (it's about 0.15% more instructions than with the existing transform, but we save about 0.67% in writes...). Closes: #854794
* support 'apt build-dep .' (aka: without /)David Kalnischkies2016-11-101-0/+8
| | | | Reported-By: Christoph Berg (Myon) on IRC
* silently skip acquire of empty index filesDavid Kalnischkies2016-04-141-0/+1
| | | | | There is just no point in taking the time to acquire empty files – especially as it will be tiny non-empty compressed files usually.
* use pkgCache::VS instead of pkgDepCache::VS()David Kalnischkies2016-02-031-0/+194
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>