Until that bug is fixed (and that bug isn't in software-properties), I don't think add-apt-repository can be changed to use getArchiveSubscriptionURL(). Or at least, if this bug only applies to me, then I can't make the change in software-properties since I wouldn't be able to test the change...
> Instead, `add-apt- repository` should call `getArchiveSubs criptionURL` (not `getArchiveSubs criptionURLs` )
this doesn't seem to work correctly.
For example:
In [25]: lp.me.getArchiv eSubscriptionUR Ls() /ddstreet:<email address hidden> /canonical- support- eng/soscleaner- deletedppa/ ubuntu' , /ddstreet:<email address hidden> /canonical- support- eng/ddstreet- deletedppa/ ubuntu' , /ddstreet:<email address hidden> /jedis/ test-deletedppa 1/ubuntu' , /ddstreet:<email address hidden> /jedis/ test-deletedppa /ubuntu' , /ddstreet:<email address hidden> /canonical- support- eng/sf155616- deletedppa/ ubuntu' , /ddstreet:<email address hidden> /canonical- support- eng/sf107001- deletedppa/ ubuntu' , /ddstreet:<email address hidden> /canonical- support- eng/sf99522- deletedppa/ ubuntu' , /ddstreet:<email address hidden> /canonical- support- eng/sf94878- deletedppa/ ubuntu' ]
Out[25]:
['https:/
'https:/
'https:/
'https:/
'https:/
'https:/
'https:/
'https:/
In [26]: jedis = lp.people('jedis')
In [28]: testdeletedppa = jedis.getPPAByN ame(name= 'test-deletedpp a')
In [29]: lp.me.getArchiv eSubscriptionUR L(archive= testdeletedppa) /api.launchpad. net/devel/ ~ddstreet', /launchpad. net/~ddstreet', type_link' : 'https:/ /api.launchpad. net/devel/ #person',
Out[29]:
{'self_link': 'https:/
'web_link': 'https:/
'resource_
...and the rest of my personal object (i.e. lp.me) as a python object.
It's the same result when I try with a non-deleted ppa, which doesn't show up in getArchiveSubsc riptionURLs( ):
In [37]: lteam = lp.people( 'launch- lite')
In [38]: lppa = lteam.getPPAByN ame(name= 'ppa')
In [39]: lp.me.getArchiv eSubscriptionUR L(archive= lppa) /api.launchpad. net/devel/ ~ddstreet', /launchpad. net/~ddstreet', type_link' : 'https:/ /api.launchpad. net/devel/ #person',
Out[39]:
{'self_link': 'https:/
'web_link': 'https:/
'resource_
...
Until that bug is fixed (and that bug isn't in software- properties) , I don't think add-apt-repository can be changed to use getArchiveSubsc riptionURL( ). Or at least, if this bug only applies to me, then I can't make the change in software-properties since I wouldn't be able to test the change...