Skip to content

Commit

Permalink
Fixes clearing the dir issue for single element types
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Aug 14, 2019
1 parent 18c3ced commit 5e1b79e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions custom_components/hacs/const.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Constants for HACS"""
NAME_LONG = "HACS (Home Assistant Community Store)"
NAME_SHORT = "HACS"
VERSION = "0.13.0"
VERSION = "0.13.1"
DOMAIN = "hacs"
PROJECT_URL = "https://github.com/custom-components/hacs/"
CUSTOM_UPDATER_LOCATIONS = [
Expand Down Expand Up @@ -40,4 +40,4 @@
If you have any issues with this you need to open an issue here:
https://github.com/custom-components/hacs/issues
-------------------------------------------------------------------
"""
"""
6 changes: 3 additions & 3 deletions custom_components/hacs/repositories/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ async def install(self):

await self.update_repository()

if self.status.installed:
if self.status.installed and not self.content.single:
backup = Backup(self.content.path.local)
backup.create()

Expand All @@ -354,10 +354,10 @@ async def install(self):
if validate.errors:
for error in validate.errors:
self.logger.error(error)
if self.status.installed:
if self.status.installed and not self.content.single:
backup.restore()

if self.status.installed:
if self.status.installed and not self.content.single:
backup.cleanup()

if validate.success:
Expand Down

0 comments on commit 5e1b79e

Please sign in to comment.