Apply --important option to apt-cache depends

Bug #16947 reported by Kimiko Koopman
6
Affects Status Importance Assigned to Milestone
APT
Fix Released
Unknown
apt (Ubuntu)
Fix Released
Wishlist
Dereck Wonnacott

Bug Description

The output from "apt-cache --important depends <package>" is the same as that
from "apt-cache depends <package>"; it includes Suggests:, Recommends:,
Conflicts: and Replaces: info. The man page states that '--important' should
"Causes only Depends and Pre-Depends relations to be printed."

(bug submitted through bugreport tool before, sorry)

Revision history for this message
Matt Zimmerman (mdz) wrote :

The documentation also indicates that it is used with the "unmet" command, not
"depends"

Matt Zimmerman (mdz)
Changed in apt:
assignee: mdz → nobody
Revision history for this message
Carlos Diener / emonkey (emonkey) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with latest Ubuntu release? Thanks in advance.

Changed in apt:
status: New → Invalid
Revision history for this message
Kimiko Koopman (kimiko) wrote :

Reported in 2005? Wow, that's ages ago.

I just tried with apt-cache from apt-0.7.9ubuntu15, and no, the --important option still doesn't affect the output of apt-cache depends.

I guess I was trying to look up the dependencies of a package back then and didn't want all the Suggests and Recommends junk to be printed as well.

Well, it's certainly low-priority, as I haven't even thought about this report since then. But it is only a wishlist item anyway. It just makes sense I think that the --important option would apply to all output.

Revision history for this message
Carlos Diener / emonkey (emonkey) wrote :

Confirmed and upstream bug filed.

Changed in apt:
status: Invalid → Confirmed
Changed in apt:
status: Unknown → New
Changed in apt:
assignee: nobody → dereck
status: Confirmed → In Progress
Revision history for this message
Dereck Wonnacott (dereck) wrote :

As Matt says, the documentation indicates that it is used with the "unmet" command, not "depends"

But it was easy to implement and wont cause any obvious grief. Here is the patch to make it happen. :)

Changed in apt:
status: In Progress → Triaged
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your patch!

I applied the patch to my bzr tree and it will be part of the next upload.

Thanks,
 Michael

Changed in apt:
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt - 0.7.14ubuntu4

---------------
apt (0.7.14ubuntu4) intrepid; urgency=low

  [ Michael Vogt ]
  * apt-pkg/deb/dpkgpm.cc:
    - fix uninitialized variable that caused no apport reports
      to be written sometimes (thanks to Matt Zimmerman)
  * merge patch that enforces stricter https server certificate
    checking (thanks to Arnaud Ebalard, closes: #485960)
  * allow per-mirror specific https settings
    (thanks to Arnaud Ebalard, closes: #485965)
  * add doc/examples/apt-https-method-example.cof
    (thanks to Arnaud Ebalard, closes: #485964)
  * add DPkg::NoTriggers option so that applications that call
    apt/aptitude (like the installer) defer trigger processing
    (thanks to Joey Hess)
  * document --install-recommends and --no-install-recommends
    (thanks to Dereck Wonnacott, LP: #126180)

  [ Dereck Wonnacott ]
  * apt-ftparchive might write corrupt Release files (LP: #46439)
  * Apply --important option to apt-cache depends (LP: #16947)

 -- Michael Vogt <email address hidden> Tue, 05 Aug 2008 10:10:49 +0200

Changed in apt:
status: Fix Committed → Fix Released
Changed in apt:
status: New → 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.