Update api infos (#28)

* New cleanup

* Cleanup addons data object from api stuff.

* Fix lint

* Fix repo export

* Fix part 2

* Update API.md
This commit is contained in:
Pascal Vizeli
2017-05-02 18:50:35 +02:00
committed by GitHub
parent dbe6b860c7
commit f6048467ad
5 changed files with 70 additions and 67 deletions

View File

@@ -19,3 +19,8 @@ def extract_hash_from_path(path):
if not RE_SHA1.match(repo_dir):
return get_hash_from_repository(repo_dir)
return repo_dir
def create_hash_index_list(name_list):
"""Create a dict with hash from repositories list."""
return {get_hash_from_repository(repo): repo for repo in name_list}