Output changelog and notes for updates if available.

This commit is contained in:
Markus Birth 2019-12-12 23:15:39 +01:00
parent 2daec2d75d
commit 7e7dc7afe9
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

@ -91,7 +91,14 @@ class UpdateInfo:
url = "-"
if len(self.files) > 0:
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):
return "[{}] {} {} {}".format(self.source, self.sku, self.device_name, self.fw_version)