Public bug reported:

0. The exact manual text location this report is about:

`man add-apt-repository`, OPTIONS section `-n --no-update` entry.

1. The current man page text reads:

"After adding the repository, do not update the package cache."

Since only "adding" is enumerated, this may lead to incorrect interpretation 
that the omission of "removing" in this section is intentional, and this option 
having no effect when paired with `-r --remove`:
- removing packages always updates package cache (`-n --no-update` ignored), or
- removing packages never updated package cache (`-n --no-update` ignored)

2. The current application behavior:

As verified on my system: the `-n --no-update` option works and
correctly suppresses package cache update when paired with `-r --remove`
option, and does not do so when `-n --no-update` option is not supplied.

3. Suggested revised wording:

"After adding or removing the repository, do not update the package cache."
(Diff: " or removing")

4. Versions replicated on:
Release: Ubuntu 26.04 LTS
Package: software-properties-common 0.120

** Affects: software-properties (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  add-apt-repository man page ambiguity: no-update semantics for
  repository removal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/2156649/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to