[Bug 849736] Re: apt-cache policy silently shows inaccurate information when any file in /etc/apt/sources.list.d is unreadable

2018-07-02 Thread Julian Andres Klode
We made things work better for unreadable files, so I think that's fixed in cosmic and probably bionic. ** Changed in: apt (Ubuntu) Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 849736] Re: apt-cache policy silently shows inaccurate information when any file in /etc/apt/sources.list.d is unreadable

2012-03-01 Thread Torsten Spindler
A modified version of the patch, adding ignore the apt-get update warning below to the output. Background is, that if any error is detected during cachefile.cc pkgCacheFile::BuildCaches, apt will print the warning: W: You may want to run apt-get update to correct these problems In the case of an

[Bug 849736] Re: apt-cache policy silently shows inaccurate information when any file in /etc/apt/sources.list.d is unreadable

2012-03-01 Thread Torsten Spindler
Here is an alternate patch, using _error-Notice instead of _error-Warning. Using Notice leaves _error-empty false and hence the apt-get update warning is not printed. For comparison. here the output of the two patches: apt-unreadable_sources.patch: $ apt-cache policy apache2 apache2:

[Bug 849736] Re: apt-cache policy silently shows inaccurate information when any file in /etc/apt/sources.list.d is unreadable

2012-03-01 Thread Torsten Spindler
** Changed in: apt (Ubuntu) Status: Triaged = In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/849736 Title: apt-cache policy silently shows inaccurate information when any file

[Bug 849736] Re: apt-cache policy silently shows inaccurate information when any file in /etc/apt/sources.list.d is unreadable

2012-02-29 Thread Torsten Spindler
Confirmed, sudo is however a workaround: spindler@spitfire:/etc/apt/sources.list.d$ apt-cache policy apache2 apache2: Installed: (none) Candidate: 2.2.22-1ubuntu1 Version table: 2.2.22-1ubuntu1 0 500 http://archive.ubuntu.com/ubuntu/ precise/main i386 Packages

[Bug 849736] Re: apt-cache policy silently shows inaccurate information when any file in /etc/apt/sources.list.d is unreadable

2012-02-29 Thread Torsten Spindler
Probably this method is not working correctly, it seems to return false whenever a problem with reading and appending a file is encountered (apt-pkg/sourcelist.cc): // CNC:2003-03-03 - By Anton V. Denisov a...@altlinux.org. // SourceList::ReadSourceDir - Read a directory with sources files //

[Bug 849736] Re: apt-cache policy silently shows inaccurate information when any file in /etc/apt/sources.list.d is unreadable

2012-02-29 Thread Torsten Spindler
The attached patch returns a true from pkgSourceList::ReadAppend when the file is not readable (!F.is_open). It might be better to change the semantic of ReadAppend to return three values, like ok, fail, fatal. pkgSourceList::ReadSourceDir could then check this return value and either continue

[Bug 849736] Re: apt-cache policy silently shows inaccurate information when any file in /etc/apt/sources.list.d is unreadable

2012-02-29 Thread Torsten Spindler
** Patch removed: apt-unreadable_sources.patch https://bugs.launchpad.net/ubuntu/+source/apt/+bug/849736/+attachment/2794013/+files/apt-unreadable_sources.patch ** Patch added: apt-unreadable_sources.patch

[Bug 849736] Re: apt-cache policy silently shows inaccurate information when any file in /etc/apt/sources.list.d is unreadable

2012-02-29 Thread Ubuntu Foundation's Bug Bot
The attachment apt-unreadable_sources.patch of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag

[Bug 849736] Re: apt-cache policy silently shows inaccurate information when any file in /etc/apt/sources.list.d is unreadable

2012-02-29 Thread Torsten Spindler
** Patch removed: apt-unreadable_sources.patch https://bugs.launchpad.net/ubuntu/+source/apt/+bug/849736/+attachment/2794165/+files/apt-unreadable_sources.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.