~manishsinha/software-properties/fix-887249-handle-404-error

Viewing all changes in revision 726.

  • Committer: Manish Sinha
  • Date: 2011-11-07 19:17:56 UTC
  • Revision ID: manishsinha@ubuntu.com-20111107191756-p0exe4wkrgfob2r9
In case the user provides a wrong username or ppa name, then the exception is handled

* The exception handler checks that if the username starts with a ~, in this case 
  it suggests does the user mean the username without a ~. e.g. if the user does
  sudo apt-add-repository ppa:~gnome3team/stable, then the script will ask the user
  if he means ppa:gnome3team/stable
* Even better friendlier messages can be provided, but for that it will introduce 
  lauchpadlib as a dependency

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: