1
0
mirror of https://github.com/pypiserver/pypiserver synced 2025-02-22 19:19:37 +01:00

We should not be revealing the path on the pypiserver returning version instead of summary/description as we don't have that info

This commit is contained in:
Craig Davis 2016-02-17 15:24:21 -06:00
parent 31c85e9fe0
commit 8d7558dcc5

@ -213,8 +213,9 @@ def handle_rpc():
ordering = 0 ordering = 0
for p in packages(): for p in packages():
if p.pkgname.count(value) > 0: if p.pkgname.count(value) > 0:
# We do not presently have any description/summary, returning version instead
d = {'_pypi_ordering': ordering, 'version': p.version, d = {'_pypi_ordering': ordering, 'version': p.version,
'name': p.pkgname, 'summary': p.fn} 'name': p.pkgname, 'summary': p.version}
response.append(d) response.append(d)
ordering += 1 ordering += 1
call_string = xmlrpclib.dumps( (response,), 'search', methodresponse=True) call_string = xmlrpclib.dumps( (response,), 'search', methodresponse=True)