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

Re: apt: pin: how to debug?



On Sun, Mar 25, 2001 at 08:34:36AM +1000, Brian May wrote:

> Back to the original question: I would really like to be able to
> get a list of where a package exists, and what priority each location
> has. eg. (made up example, has no real life value):
> 
> # doit x
> security.debian.org debian stable/main x 0.5.0   600
> ftp.debian.org      debian stable/main x 0.4.9   600
> ftp.debian.org      debian unstable/main x 0.5.2  <default>
> ftp.helix.org       helix unstable/main x 0.5.1   700
> 
> this would enable you to clearly see what versions are available,
> and why apt-get has chosen one over the other.

Since the output of apt-cache is already in a useful format, suitable for
munging using tools like grep-dctrl, it would probably suffice to add Pin and
Pin-Priority fields to the output of apt-cache, then a tool like the
hypothetical 'doit' could be written very easily.

-- 
 - mdz



Reply to: