Fix reading the full_radio option
releasetools.py should not apply partial updates to board specific
partitions if the "--full_radio" flag is passed to release tool scripts.
This changes the condition to flash full partitions to read from the
correct location.
Issue: FP2N-332
Issue: FP2P-145
Change-Id: I1e94eb15a330851ff138e2bd58efb60effb97db3
(cherry picked from commit 2b8de4f8795e969bc673021545bf757248d89c1e)
diff --git a/releasetools.py b/releasetools.py
index 68580a9..0559dac 100644
--- a/releasetools.py
+++ b/releasetools.py
@@ -1,5 +1,6 @@
# Copyright (C) 2009 The Android Open Source Project
# Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
+# Copyright (C) 2018 Fairphone B.V.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -139,7 +140,7 @@
if src_files is not None:
sf = src_files.get(fn, None)
- full = getattr(info, 'full_radio', False) or sf is None or fn.endswith('.enc')
+ full = common.OPTIONS.full_radio or sf is None or fn.endswith('.enc')
if not full:
# no difference - skip this file
if tf.sha1 == sf.sha1: