if latest is None:
if name_key == 'binary_name': package_type = "binary package" elif name_key == 'source_name': package_type = "source package" else: package_type = "package"
Additionally, there is a named_key and name parameter passed to _getPublishedItem. seeded-in-ubuntu calls getSourcePackage which then calls _getPublishedItem with name_key='source_name' so I'm really pretty sure name_key should set to name_key in the parameters and not name.
I was looking at lines 371+, http:// bazaar. launchpad. net/~ubuntu- dev/ubuntu- dev-tools/ trunk/view/ head:/ubuntutoo ls/lp/lpapicach e.py#L371, which show the following:
if latest is None:
package_ type = "binary package"
elif name_key == 'source_name':
package_ type = "source package"
else:
package_ type = "package"
if name_key == 'binary_name':
Additionally, there is a named_key and name parameter passed to _getPublishedItem. seeded-in-ubuntu calls getSourcePackage which then calls _getPublishedItem with name_key= 'source_ name' so I'm really pretty sure name_key should set to name_key in the parameters and not name.