[Bug 1178015] Re: add-apt-repository error is not clear

Scott Kostyshak skostysh at lyx.org
Thu May 9 16:34:37 UTC 2013


Good point. Attached is a new patch. It might violate some style rules.
I find 'elif' more readable here but some may prefer 'if'. Also, "!= 1"
could be used instead of "> 1" but I find "> 1" more readable.

Scott

** Patch added: "patch_v2"
   https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1178015/+attachment/3671194/+files/apt-add-repository_V2.patch

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

Title:
  add-apt-repository error is not clear

Status in “software-properties” package in Ubuntu:
  Triaged

Bug description:
  If two repositories are given as an argument, the error is:
  "Error: need a repository as argument"

  I think that add-apt-repository should support multiple repositories. But if not, the error should be changed to:
  "Error: need a single repository as argument"

  Attached is a patch.

  Scott

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




More information about the foundations-bugs mailing list