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 unreadable source list this is misleading.

The code printing the apt-get update warning:
   /* This sux, remove it someday */
   if (ErrorWasEmpty == true && _error->empty() == false)
      _error->Warning(_("You may want to run apt-get update to correct these 
problems"));


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

-- 
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