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 (on ok and fail) or abort
(fatal). Currently it aborts on any false returned by ReadAppend,
causing this bug upon encountering non-readable sources files.

** Patch added: "apt-unreadable_sources.patch"
   
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/849736/+attachment/2794013/+files/apt-unreadable_sources.patch

** Changed in: apt (Ubuntu)
       Status: Confirmed => Triaged

** Changed in: apt (Ubuntu)
   Importance: Undecided => Low

-- 
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
  in /etc/apt/sources.list.d is unreadable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/849736/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to