#686052 python-software-properties: add-apt-repository may add a wrong suite for PPAs

#686052#5
Date:
2012-08-28 02:58:00 UTC
From:
To:
Dear Maintainer,

I was recently trying some PPAs from launchpad, that do not have a
specific version for Debian suites like wheezy. In most cases they have
only a version for some Ubuntu suites.

So when I added the repository the next apt-get update run throws an
404 error that the newly added repository is no available.

In my opinion it might be better to try if the about to be added suite
is existent on the PPA and if not fetch a list of available versions to
prompt the user.

Regards,

Andre

#686052#10
Date:
2012-12-12 04:36:41 UTC
From:
To:
I had a look at what it would take to implement this. It looks like
the JSON returned by the PPA API does not include a list
of targeted suites. The best that I could see is parsing the HTML from
the directory listing of the repository, which
is far from optimal. Implementing an option to specify the release may
be easier.

Regards,

#686052#15
Date:
2015-04-09 16:27:51 UTC
From:
To:
simple thing to check PPA existence:
wget -q --spider [PPA_URL]/dists/[DISTRO]/Release