aboutsummaryrefslogtreecommitdiff
path: root/tools/releasetools/ota_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/releasetools/ota_utils.py')
-rw-r--r--tools/releasetools/ota_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/releasetools/ota_utils.py b/tools/releasetools/ota_utils.py
index ef1dca232c..12acc138c7 100644
--- a/tools/releasetools/ota_utils.py
+++ b/tools/releasetools/ota_utils.py
@@ -16,6 +16,7 @@ import copy
import itertools
import logging
import os
+import shutil
import struct
import zipfile
@@ -119,7 +120,7 @@ def FinalizeMetadata(metadata, input_file, output_file, needed_property_files):
# Re-sign the package after updating the metadata entry.
if OPTIONS.no_signing:
- output_file = prelim_signing
+ shutil.copy(prelim_signing, output_file)
else:
SignOutput(prelim_signing, output_file)