Update 'almalinux/gitutils/blob_upload.py'

This commit is contained in:
Stepan Oksanichenko 2023-05-11 12:37:38 +00:00
parent 843e9670e0
commit 24335e29d2

View File

@ -133,7 +133,7 @@ def main():
iterator = get_file_iterator(args.file, args.input_metadata)
out_fd = None
if args.output_metadata:
out_fd = open(args.output_metadata, 'w+' if args.append_metadata else 'w')
out_fd = open(args.output_metadata, 'wa' if args.append_metadata else 'w')
try:
for rel_path, checksum, checksum_type in iterator:
file_path = normalize_path(rel_path)