Moved changelog output to get_updates.py and finally made -c parameter
working.
This commit is contained in:
parent
0341218fc1
commit
e6b8d941e0
@ -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)
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user