mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-21 08:06:30 +00:00
Change log output / fix bug with store repository
This commit is contained in:
parent
c8e3f2b48a
commit
9e1d6c9d2b
@ -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
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user