Restore old single package query behaviour

This commit is contained in:
Pedro Algarvio 2015-04-08 19:52:22 +01:00
parent 2701e15725
commit a5fb7275d7

View File

@ -171,6 +171,9 @@ def latest_version(*names, **kwargs):
ret_data[k] = pkg_info.get(k)
ret[name] = ret_data
# Return a string if only one package name passed
if len(names) == 1:
return ret[names[0]]['version']
return ret