summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'python-updater')
-rwxr-xr-xpython-updater3
1 files changed, 2 insertions, 1 deletions
diff --git a/python-updater b/python-updater
index ae6557d..9c8a7dd 100755
--- a/python-updater
+++ b/python-updater
@@ -35,6 +35,7 @@ VERBOSE=0
PKGS_TO_REMERGE=""
PKGS_COUNT_REMERGE=0
PORTAGE_PYTHON="/usr/bin/python"
+PYTHON_VERSIONS="3.2 3.1 3.0 2.7 2.6 2.5 2.4 2.3 2.2 2.1"
SUPPORTED_PMS="portage pkgcore paludis"
PMS_COMMAND=( "emerge" "pmerge" "paludis" )
@@ -117,7 +118,7 @@ veinfo() {
# get_old_pyver()
# Find old python version, return non-zero if not found
get_old_pyver() {
- for old in 2.5 2.4 2.3 2.2 2.1; do
+ for old in ${PYTHON_VERSIONS}; do
if [[ "${old}" != "${NEW_PY_VER}" && -e /usr/bin/python${old} ]]
then
echo -n "${old}"