apt-cache policy does not show the paths of local repositories

Bug #93302 reported by Shriramana Sharma
2
Affects Status Importance Assigned to Milestone
apt (Debian)
New
Undecided
Unassigned
apt (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: apt

Version: 0.6.45ubuntu14 on Edgy

Currently, as has been referred to at debian bug 372818, apt-cache policy gives the paths of the remote repositories which provide a particular package. However, I am working here with many local repositories for various reasons, and apt-cache does not list their addresses at all. (Should be easy enough to pull those addresses from sources.list.)

For example:

$ apt-cache policy basket
basket:
  Installed: 1.0-1
  Candidate: 1.0-1
  Version table:
 *** 1.0-1 0
        500 file: Packages
        100 /var/lib/dpkg/status
     0.5.0-6 0
        500 file: edgy/universe Packages
        500 http://in.archive.ubuntu.com edgy/universe Packages

The local sources of the package:

file:///home/samjnaa/ab/deb-edgy-homemade-backports/ for 1.0-1 and

file:///mnt/_ubuntudiscs/rum1/ for 0.5.0-6

are not displayed at all. It just says: "file:" which is not at all helpful. Please fix this as the field is intended to be shown to users for the very purpose of knowing the repositories which provide the file.

Changed in apt:
importance: Undecided → Wishlist
Changed in apt:
status: Unknown → Fix Released
Przemek K. (azrael)
Changed in apt (Ubuntu):
status: New → Fix Released
Revision history for this message
Shriramana Sharma (jamadagni) wrote :

This bug reported here is not the same as the upstream invalid bug. That bug asks for apt-cache *show* to show paths of servers and the reporter of that bug was satisfied by apt-cache *policy* showing those paths instead. The reporter of that bug was only concerned with non-local repositories. Here however I have specifically asked for showing the paths of local repositories.

Changed in apt (Debian):
importance: Unknown → Undecided
status: Fix Released → New
Revision history for this message
Shriramana Sharma (jamadagni) wrote :

Since:

1. I have clarified that this bug is not the same as the upstream bug, and

2. I have satisfied myself that http://packages.debian.org/changelogs/pool/main/a/apt/apt_0.7.25/changelog and http://changelogs.ubuntu.com/changelogs/pool/main/a/apt/apt_0.7.24ubuntu1/changelog both do not show this feature of paths of local repositories being shown as having been implemented

3. I observe this deficiency to be true in my existing installation of Karmic Koala with apt version 0.7.23.1ubuntu2,

I am reopening this bug. Thank you.

Changed in apt (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Julian Andres Klode (juliank) wrote :

This seems to be fixed now. On Debian, I get:

jak@jak-thinkpad:~/Desktop/apt/debian-sid$ apt-cache policy apt
apt:
  Installed: 0.8.13.2
  Candidate: 0.8.13.2
  Version table:
 *** 0.8.13.2 0
        500 http://localhost/debian/ sid/main amd64 Packages
        100 /var/lib/dpkg/status
     0.8.13.1 0
        500 file:/tmp/ ./ Packages

The version in natty is equal to the version in Debian.

Changed in apt (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.