summaryrefslogtreecommitdiff
path: root/test/integration/test-bug-818628-unreadable-source
Commit message (Collapse)AuthorAgeFilesLines
* Make test-bug-818628-unreadable-source work on !amd64Julian Andres Klode2017-08-241-0/+1
| | | | | It was broken because apt.conf.d was not readable, but that's where the architecture is defined...
* show warnings instead of errors if files are unreadableDavid Kalnischkies2017-07-261-28/+35
| | | | | | | | | | We used to fail on unreadable config/preferences/sources files, but at least for sources we didn't in the past and it seems harsh to refuse to work because of a single file, especially as the error messages are inconsistent and end up being silly (like suggesting to run apt update to fix the problem…). LP: #1701852
* use FileFd to parse all apt configuration filesDavid Kalnischkies2017-07-261-2/+2
| | | | | | Using different ways of opening files means we have different behaviour and error messages for them, so by the same for all we can have more uniformity for users and apt developers alike.
* fail instead of segfault on unreadable config filesDavid Kalnischkies2016-05-201-24/+68
| | | | | | | | | | | | | The report mentions "apt list --upgradable", but there are others which have inconsistent behavior ranging from segfaulting to doing something with the partial (and hence incomplete) data. We had a recent report about sources.list (#818628), this one mentions prefences, the obvious next step is conf files… so the testcase is adapted to check for all three in file and directory versions and run a bunch of commands each time which should all have more or less the same behavior in such a case (aka error out). Closes: 824503
* cachefile: Only set members that were initialized successfullyJulian Andres Klode2016-03-191-0/+42
Otherwise, things will just start failing later down the stack, because (a) the lazy getters do not check if building was successful and (b) any further getter call would return the invalid object anyway. Also initialize VS in pkgCache to nullptr by default. Closes: #818628