Add support for changelog (#271)

This commit is contained in:
Pascal Vizeli
2017-12-10 23:45:30 +01:00
committed by GitHub
parent ece6c644cf
commit 1e3868bb70
5 changed files with 31 additions and 3 deletions

View File

@@ -348,6 +348,11 @@ class Addon(object):
"""Return True if a logo exists."""
return self.path_logo.exists()
@property
def with_changelog(self):
"""Return True if a changelog exists."""
return self.path_changelog.exists()
@property
def supported_arch(self):
"""Return list of supported arch."""
@@ -407,6 +412,11 @@ class Addon(object):
"""Return path to addon logo."""
return Path(self.path_location, 'logo.png')
@property
def path_changelog(self):
"""Return path to addon changelog."""
return Path(self.path_location, 'CHANGELOG.md')
def write_options(self):
"""Return True if addon options is written to data."""
schema = self.schema