[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#322074: "apt-cache policy $PKG" does not work correctly with apt-proxy



Package: apt
Version: 0.5.28.6
Severity: minor

Hi,

to lower the burden on the official Debian servers and mirrors I
installed apt-proxy as a local cacheing proxy for debs for the LAN. 
Now, I just found out about the wonderful option to see where a specific
package can be gotten from via "apt-cache policy $PKG".  If using a
local apt-proxy this will result in something like

# apt-cache policy myspell-de-de-oldspell
myspell-de-de-oldspell:
  Installed: 2-22
  Candidate: 2-22
  Version Table:
 *** 2-22 0
        500 http://server testing/main Packages
        100 /var/lib/dpkg/status

Of course, this is not useful since there might be several entries for 
testing packages.  Maybe it would be a good idea to output the full 
URL.  Currently, it is impossible to tell whether this file will be 
gotten from http://server:9999/source1/testing/$blah or 
http://server:9999/source2/testing/$blah.

But then again, maybe I am just making a mistake.

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Get "";
APT::Get::Download-Only "false";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Options "";
DPkg::Options:: "--force-overwrite";
Acquire "";
Acquire::Retries "0";
DSelect "";
DSelect::Clean "auto";

-- (no /etc/apt/preferences present) --

-- System Information:
Debian Release: 3.1
Architecture: i386 (i586)
Kernel: Linux 2.4.26.server050630
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages apt depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libgcc1                     1:3.4.3-13   GCC support library
ii  libstdc++5                  1:3.3.5-13   The GNU Standard C++ Library v3

-- no debconf information



Reply to: