Add support for "author" field in library.json manifest // Resolve #1055

This commit is contained in:
Ivan Kravets
2017-09-21 15:07:38 +03:00
parent c677f24d8e
commit 25da978fee

View File

@ -71,7 +71,10 @@ class LibraryManager(BasePkgManager):
del manifest['sentence']
if "author" in manifest:
manifest['authors'] = [{"name": manifest['author']}]
if isinstance(manifest['author'], dict):
manifest['authors'] = [manifest['author']]
else:
manifest['authors'] = [{"name": manifest['author']}]
del manifest['author']
if "authors" in manifest and not isinstance(manifest['authors'], list):