mirror of
https://github.com/openharmony/global_timezone.git
synced 2026-07-01 03:23:12 -04:00
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -109,7 +109,7 @@ def main():
|
||||
new_version = file_name[6:11]
|
||||
try_download(file_type, new_version, download_path, version)
|
||||
decompress(file_type + new_version + '.tar.gz', download_path)
|
||||
flags = os.O_WRONLY
|
||||
flags = os.O_WRONLY | os.O_CREAT
|
||||
modes = stat.S_IWUSR | stat.S_IRUSR
|
||||
with os.fdopen(os.open(os.path.join(download_path, 'version.txt'), flags, modes), 'w') as file:
|
||||
file.write(new_version + '\n')
|
||||
|
||||
Reference in New Issue
Block a user