On Wed, 27 Aug 2008 07:21:43 -0700 Junichi Uekawa wrote:

> 
> I've re-read your initial mail, and I think what you're looking for is 
> 
>      apt-listbugs list package/version
> 
> which is already implemented.
> What did you try to implement in your patch?

Unfortunately, the list command is not sufficient for my needs.
My query command filters the bugs to be considered and only shows the
ones that worry the user, if still present and RC.

I'll try to explain with a live example:

  $ /usr/sbin/apt-listbugs -y -q list apt/0.7.14
  critical bugs of apt (0.7.9 -> 0.7.14) <pending>
   #495954 - slapd: Upgrade to Lenny failed: libldap_r-2.3.so.0 missing
   #433091 - ignores expiry of archive keys
  grave bugs of apt (0.7.9 -> 0.7.14) <pending>
   #474947 - MMap, again; and won't be denied this time
   #465241 - bibtex2html has been installed with an unmet dependency
  Summary:
   apt(4 bugs)

This is how the list command currently works.
My modified version does not change the behavior of the list command:

  $ test/apt-listbugs -y -q list apt/0.7.14
  critical bugs of apt (0.7.9 -> 0.7.14) <pending>
   #495954 - slapd: Upgrade to Lenny failed: libldap_r-2.3.so.0 missing
   #433091 - ignores expiry of archive keys
  grave bugs of apt (0.7.9 -> 0.7.14) <pending>
   #474947 - MMap, again; and won't be denied this time
   #465241 - bibtex2html has been installed with an unmet dependency
  Summary:
   apt(4 bugs)

What I did in my modified version is implementing a different command,
namely the query command, which behaves differently.

  $ test/apt-listbugs -y -q query apt/0.7.14 465241 123456
  grave bugs of apt (0.7.9 -> 0.7.14) <pending>
   #465241 - bibtex2html has been installed with an unmet dependency
  Summary:
   apt(1 bug)

Do you see?
The query command lists *one bug only*, because, *among the bugs that
the user is interested in* (that is to say: 465241 and 123456), *only
one* (465241) affects apt/0.7.14 and is RC.
The list command, on the other hand, shows four bugs, which is correct
(because four bugs affect apt/0.7.14), but does not meet my needs.

I hope I clarified.


-- 
 http://frx.netsons.org/doc/index.html#nanodocs
 The nano-document series is here!
..................................................... Francesco Poli .
 GnuPG key fpr == C979 F34B 27CE 5CD8 DC12  31B5 78F4 279B DD6D FCF4

Attachment: pgpFVemJosC4K.pgp
Description: PGP signature

Reply via email to