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