Change log output / fix bug with store repository

This commit is contained in:
Pascal Vizeli 2017-04-28 00:26:58 +02:00
parent c8e3f2b48a
commit 9e1d6c9d2b
2 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@ class AddonManager(AddonsData):
_LOGGER.error("Can't load from repository %s", url) _LOGGER.error("Can't load from repository %s", url)
return False return False
self.config.addons_repositories = repo self.config.addons_repositories = url
self.repositories.append(repo) self.repositories.append(repo)
return True return True

View File

@ -31,7 +31,7 @@ class AddonsRepo(object):
async with self._lock: async with self._lock:
try: try:
_LOGGER.info("Load addons repository") _LOGGER.info("Load addon %s repository", self.path)
self.repo = await self.loop.run_in_executor( self.repo = await self.loop.run_in_executor(
None, git.Repo, self.path) None, git.Repo, self.path)
@ -45,7 +45,7 @@ class AddonsRepo(object):
"""Clone git addon repo.""" """Clone git addon repo."""
async with self._lock: async with self._lock:
try: try:
_LOGGER.info("Clone addons repository") _LOGGER.info("Clone addon %s repository", self.url)
self.repo = await self.loop.run_in_executor( self.repo = await self.loop.run_in_executor(
None, git.Repo.clone_from, self.url, self.path) None, git.Repo.clone_from, self.url, self.path)
@ -63,7 +63,7 @@ class AddonsRepo(object):
async with self._lock: async with self._lock:
try: try:
_LOGGER.info("Pull addons repository") _LOGGER.info("Pull addon %s repository", self.url)
await self.loop.run_in_executor( await self.loop.run_in_executor(
None, self.repo.remotes.origin.pull) None, self.repo.remotes.origin.pull)