Output changelog and notes for updates if available.
This commit is contained in:
parent
2daec2d75d
commit
7e7dc7afe9
@ -91,7 +91,14 @@ class UpdateInfo:
|
|||||||
url = "-"
|
url = "-"
|
||||||
if len(self.files) > 0:
|
if len(self.files) > 0:
|
||||||
url = self.files[0]["url"]
|
url = self.files[0]["url"]
|
||||||
return "[{}] {} {} {}: {}".format(self.source, self.sku, self.device_name, self.fw_version, url)
|
txt = "[{}] {} {} {}: {}".format(self.source, self.sku, self.device_name, self.fw_version, url)
|
||||||
|
if self.changelog:
|
||||||
|
txt += "\nChangelog:\n" + self.changelog
|
||||||
|
if self.notes:
|
||||||
|
txt += "\n\nNotes:\n" + self.notes
|
||||||
|
if self.additional_info_url:
|
||||||
|
txt += self.additional_info_url
|
||||||
|
return txt
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "[{}] {} {} {}".format(self.source, self.sku, self.device_name, self.fw_version)
|
return "[{}] {} {} {}".format(self.source, self.sku, self.device_name, self.fw_version)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user