Moved changelog output to get_updates.py and finally made -c parameter

working.
This commit is contained in:
Markus Birth 2019-12-12 23:37:27 +01:00
parent 0341218fc1
commit e6b8d941e0
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
2 changed files with 7 additions and 6 deletions

View File

@ -110,3 +110,10 @@ if opts.webupdater:
for r in results:
print(r)
if opts.changelog:
if r.changelog:
print("\nChangelog:\n" + r.changelog)
if r.notes:
print("\n\nNotes:\n" + r.notes)
if r.additional_info_url:
print("\nAdditional Information: " + r.additional_info_url)

View File

@ -101,12 +101,6 @@ class UpdateInfo:
if len(self.files) > 0:
url = self.files[0]["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 += "\nAdditional Information: " + self.additional_info_url
return txt
def __repr__(self):