[Bug 890708] Re: add-apt-repository: confirmation question is a CLI UI regression, breaking scripts

Michael Vogt michael.vogt at ubuntu.com
Wed Nov 30 08:46:28 UTC 2011


** Also affects: software-properties (Ubuntu Oneiric)
   Importance: Undecided
       Status: New

** Changed in: software-properties (Ubuntu)
       Status: New => In Progress

** Changed in: software-properties (Ubuntu Oneiric)
       Status: New => In Progress

** Description changed:

+ TEST CASE:
+ 1. run add-apt-repository ppa:mvo
+ 2. verify that it prompts
+ 3. install software-properties from lucid-proposed
+ 4. run FORCE_ADD_APT_REPOSITORY=1 add-apt-repository ppa:mvo
+ 5. verify that it does *not* prompt
+ 
  The addition in oneiric of a confirmation question as the default
  behavior for add-apt-repository is a change in behavior which breaks all
  scripts that were using add-apt-repository and most every code snippet
  on the web which explains how to install software from a PPA. (the
  instructions still work in sequence, but if someone wants to just
  highlight three lines which add the repo, run update, and then install
  the package, the second two get eaten by the prompt) Additionally,
  although there is a new -y option which enables the old behavior, this
  option did not exist in pre-oneiric, it becomes quite klunky to write
  system automation scripts which work across releases.
  
  It seems that this causes many more problems than it solves, imho.

** Changed in: software-properties (Ubuntu)
       Status: In Progress => Fix Committed

** Changed in: software-properties (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
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/890708

Title:
  add-apt-repository: confirmation question is a CLI UI regression,
  breaking scripts

Status in “software-properties” package in Ubuntu:
  Fix Released
Status in “software-properties” source package in Oneiric:
  In Progress

Bug description:
  TEST CASE:
  1. run add-apt-repository ppa:mvo
  2. verify that it prompts
  3. install software-properties from lucid-proposed
  4. run FORCE_ADD_APT_REPOSITORY=1 add-apt-repository ppa:mvo
  5. verify that it does *not* prompt

  The addition in oneiric of a confirmation question as the default
  behavior for add-apt-repository is a change in behavior which breaks
  all scripts that were using add-apt-repository and most every code
  snippet on the web which explains how to install software from a PPA.
  (the instructions still work in sequence, but if someone wants to just
  highlight three lines which add the repo, run update, and then install
  the package, the second two get eaten by the prompt) Additionally,
  although there is a new -y option which enables the old behavior, this
  option did not exist in pre-oneiric, it becomes quite klunky to write
  system automation scripts which work across releases.

  It seems that this causes many more problems than it solves, imho.

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




More information about the foundations-bugs mailing list