diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-07-12 03:29:36 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-07-12 03:29:36 +0000 |
commit | dbd473b798e3a13a457183d5019e97fda70d3279 (patch) | |
tree | 9a0962114612f60d290ca95e071ba87151bb6b0a | |
parent | Replace --ignore-versions option with --reinstall-identical-versions option. (diff) | |
download | python-updater-dbd473b798e3a13a457183d5019e97fda70d3279.tar.gz python-updater-dbd473b798e3a13a457183d5019e97fda70d3279.tar.bz2 python-updater-dbd473b798e3a13a457183d5019e97fda70d3279.zip |
Respect PACKAGE_MANAGER environment variable. Bug #272979.
-rw-r--r-- | ChangeLog | 2 | ||||
-rwxr-xr-x | python-updater | 11 |
2 files changed, 13 insertions, 0 deletions
@@ -5,6 +5,8 @@ This file lists all changes except typo and formatting fixes. 2009-07-12 Arfrever Frehtes Taifersar Arahesis + * python-updater: Respect PACKAGE_MANAGER environment variable. Bug #272979. + * python-updater: Replace --ignore-versions option with --reinstall-identical-versions option. diff --git a/python-updater b/python-updater index 28fec5d..5b7e7f1 100755 --- a/python-updater +++ b/python-updater @@ -40,6 +40,7 @@ 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" ) PMS_OPTIONS=( "-vD1" "-Do" "-i1" ) +PMS_INDEX=0 CUSTOM_PMS_COMMAND="" ADDITIONAL_OPTIONS="" @@ -176,6 +177,16 @@ if [[ -n "${PYUPDATER_OPTIONS}" ]]; then set -- ${PYUPDATER_OPTIONS} $@ fi +# Respect PACKAGE_MANAGER environment variable +i=0 +for pm in ${SUPPORTED_PMS}; do + if [[ "${pm}" == "${PACKAGE_MANAGER}" ]]; then + PMS_INDEX="${i}" + break + fi + ((i++)) +done + # Command Line Parsing while [[ -n "$1" ]]; do case "$1" in |