summaryrefslogtreecommitdiffstats
path: root/tools/update-appdata.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtools/update-appdata.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/update-appdata.py b/tools/update-appdata.py
index b2960ee2..4b8ee7da 100755
--- a/tools/update-appdata.py
+++ b/tools/update-appdata.py
@@ -32,7 +32,6 @@ import io
import os.path
import re
import subprocess
-import sys
import time
def main():
@@ -63,10 +62,13 @@ def main():
<url>https://www.wireshark.org/docs/relnotes/wireshark-{0}.{1}.html</url>
</release>
'''
+ cur_date = date.fromtimestamp(time.time()).isoformat()
release_tag_l = [
f' <!-- Automatically generated by tools/{os.path.basename(__file__)} -->\n',
- release_tag_fmt.format(maj_min, next_micro, date.fromtimestamp(time.time()).isoformat())
+ release_tag_fmt.format(maj_min, next_micro, cur_date)
]
+ print(f'Added {maj_min}.{next_micro}, {cur_date}')
+
for micro in range(int(next_micro) - 1, -1, -1):
try:
tag_date = subprocess.run(
@@ -75,6 +77,7 @@ def main():
encoding='UTF-8',
stdout=subprocess.PIPE, stderr=subprocess.PIPE).stdout.strip()
release_tag_l.append(release_tag_fmt.format(maj_min, micro, tag_date))
+ print(f'Added {maj_min}.{micro}, {tag_date}')
except Exception:
print('Unable to fetch release tag')
raise