add-apt-repository should return error code on HTTP 404

Bug #782120 reported by Cris Dywan
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

If the repository doesn't exist, for example

sudo add-apt-repository ppa:doesntexist/ppa

the output will be an internal error like

Error reading https://launchpad.net/api/1.0/~doesntexist/+archive/ppa: HTTP Error 404: Not Found

The return code should be different than 0.

Robert Roth (evfool)
Changed in software-properties (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.