summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2014-02-18 10:57:07 -0800
committerDoug Zongker <dougz@android.com>2014-02-18 10:57:07 -0800
commitcf6d5a90740e50e03d9f16c6fd449d90d396f924 (patch)
tree0ff146600c7b870d5357db751c7c30921030b2ef
parent0158f8f71c78caa0ff8c02ddc2d6698cc90214dd (diff)
downloadbuild-cf6d5a90740e50e03d9f16c6fd449d90d396f924.zip
build-cf6d5a90740e50e03d9f16c6fd449d90d396f924.tar.gz
build-cf6d5a90740e50e03d9f16c6fd449d90d396f924.tar.bz2
bump releasetools python requirement to 2.7
These scripts already use some post-2.4 features, so let's make it official: Python 2.7 is needed to run them. Change-Id: I256e9ed99b0b62abe4e22a7b1f811acb7419e88e
-rwxr-xr-xtools/releasetools/check_target_files_signatures4
-rwxr-xr-xtools/releasetools/img_from_target_files.py4
-rwxr-xr-xtools/releasetools/make_recovery_patch4
-rwxr-xr-xtools/releasetools/ota_from_target_files4
-rwxr-xr-xtools/releasetools/sign_target_files_apks4
5 files changed, 10 insertions, 10 deletions
diff --git a/tools/releasetools/check_target_files_signatures b/tools/releasetools/check_target_files_signatures
index 45d30a6..b2f46c1 100755
--- a/tools/releasetools/check_target_files_signatures
+++ b/tools/releasetools/check_target_files_signatures
@@ -41,8 +41,8 @@ Usage: check_target_file_signatures [flags] target_files
import sys
-if sys.hexversion < 0x02040000:
- print >> sys.stderr, "Python 2.4 or newer is required."
+if sys.hexversion < 0x02070000:
+ print >> sys.stderr, "Python 2.7 or newer is required."
sys.exit(1)
import os
diff --git a/tools/releasetools/img_from_target_files.py b/tools/releasetools/img_from_target_files.py
index ab505b1..1511145 100755
--- a/tools/releasetools/img_from_target_files.py
+++ b/tools/releasetools/img_from_target_files.py
@@ -31,8 +31,8 @@ Usage: img_from_target_files [flags] input_target_files output_image_zip
import sys
-if sys.hexversion < 0x02040000:
- print >> sys.stderr, "Python 2.4 or newer is required."
+if sys.hexversion < 0x02070000:
+ print >> sys.stderr, "Python 2.7 or newer is required."
sys.exit(1)
import errno
diff --git a/tools/releasetools/make_recovery_patch b/tools/releasetools/make_recovery_patch
index 470dfc4..08d1450 100755
--- a/tools/releasetools/make_recovery_patch
+++ b/tools/releasetools/make_recovery_patch
@@ -16,8 +16,8 @@
import sys
-if sys.hexversion < 0x02040000:
- print >> sys.stderr, "Python 2.4 or newer is required."
+if sys.hexversion < 0x02070000:
+ print >> sys.stderr, "Python 2.7 or newer is required."
sys.exit(1)
import os
diff --git a/tools/releasetools/ota_from_target_files b/tools/releasetools/ota_from_target_files
index dcfbf83..60ccd0f 100755
--- a/tools/releasetools/ota_from_target_files
+++ b/tools/releasetools/ota_from_target_files
@@ -61,8 +61,8 @@ Usage: ota_from_target_files [flags] input_target_files output_ota_package
import sys
-if sys.hexversion < 0x02040000:
- print >> sys.stderr, "Python 2.4 or newer is required."
+if sys.hexversion < 0x02070000:
+ print >> sys.stderr, "Python 2.7 or newer is required."
sys.exit(1)
import copy
diff --git a/tools/releasetools/sign_target_files_apks b/tools/releasetools/sign_target_files_apks
index ab24706..6810421 100755
--- a/tools/releasetools/sign_target_files_apks
+++ b/tools/releasetools/sign_target_files_apks
@@ -67,8 +67,8 @@ Usage: sign_target_files_apks [flags] input_target_files output_target_files
import sys
-if sys.hexversion < 0x02040000:
- print >> sys.stderr, "Python 2.4 or newer is required."
+if sys.hexversion < 0x02070000:
+ print >> sys.stderr, "Python 2.7 or newer is required."
sys.exit(1)
import base64