[Bug 1992472] [NEW] APT hooks do not respect the -q option

Renan Rodrigo 1992472 at bugs.launchpad.net
Tue Oct 11 14:54:24 UTC 2022


Public bug reported:

ubuntu-advantage-tools recently used an APT Cli hook
(AptCli::Hooks::Upgrade) to add a message to the output. We were asked
in https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-
tools/+bug/1992026/comments/9 to honor the -q (-qq, -qqq) option of APT
upgrade, and hide the output.

However, the hook does not expose this option, so there is nothing we
can do from our side.

APT could either treat those messages based on the "quietness" defined
when running the command, or expose the flag somehow so we could
configure our message to respect it.

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1992472

Title:
  APT hooks do not respect the -q option

Status in apt package in Ubuntu:
  New

Bug description:
  ubuntu-advantage-tools recently used an APT Cli hook
  (AptCli::Hooks::Upgrade) to add a message to the output. We were asked
  in https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-
  tools/+bug/1992026/comments/9 to honor the -q (-qq, -qqq) option of
  APT upgrade, and hide the output.

  However, the hook does not expose this option, so there is nothing we
  can do from our side.

  APT could either treat those messages based on the "quietness" defined
  when running the command, or expose the flag somehow so we could
  configure our message to respect it.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1992472/+subscriptions




More information about the foundations-bugs mailing list