mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-09 22:06:47 +00:00
Set prds.json mtime to past to force update after upload.
This commit is contained in:
parent
92813c604c
commit
9ab7314662
@ -31,3 +31,12 @@ for fn in file_list:
|
||||
os.remove(fn)
|
||||
add_text = " - Please try again later."
|
||||
print(" ERROR: HTTP {}{}".format(r.status_code, add_text))
|
||||
|
||||
# Mark prds.json as outdated to fetch updated version
|
||||
print("Mark PRD cache for update…", end="")
|
||||
try:
|
||||
os.utime("prds.json", times=(1, 1))
|
||||
print(" OK")
|
||||
except OSError as e:
|
||||
print(" FAILED")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user