Comment 3 for bug 1269718

Revision history for this message
Ryan Harper (raharper) wrote :

When invoking apt-add-repository --yes, there is no validation of the url at all. Currently add_source rejects https, but the MP will address that.

Once add_source supports https urls, I don't think we can raise an exception when add-apt-repository is doing real work and doesn't error.

(foudres) ~ % grep -r example /etc/apt/sources.list*
(foudres) ~ % sudo apt-add-repository --yes "https://example.com" ; echo $?
0
(foudres) ~ % grep -r example /etc/apt/sources.list*
/etc/apt/sources.list:deb https://example.com saucy main
/etc/apt/sources.list:# deb-src https://example.com saucy main