diff options
author | 2011-03-22 21:19:28 +0000 | |
---|---|---|
committer | 2011-03-22 21:19:28 +0000 | |
commit | 98cb0e4bdb26d183465114ee206601852bf53dd9 (patch) | |
tree | 314e6e4076e8bd967d1bce78cd4673e05c27c25e | |
parent | Improve error message for missing PVR (bug #303037). (diff) | |
download | python-updater-98cb0e4bdb26d183465114ee206601852bf53dd9.tar.gz python-updater-98cb0e4bdb26d183465114ee206601852bf53dd9.tar.bz2 python-updater-98cb0e4bdb26d183465114ee206601852bf53dd9.zip |
Use cave instead of paludis (bug #347897).
-rwxr-xr-x | python-updater | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/python-updater b/python-updater index 15a321a..5ff04f4 100755 --- a/python-updater +++ b/python-updater @@ -41,8 +41,9 @@ PYTHON3_VERSIONS="3.0 3.1 3.2 3.3" PYTHON_VERSIONS="${PYTHON2_VERSIONS} ${PYTHON3_VERSIONS}" SUPPORTED_PMS="portage pkgcore paludis" -PMS_COMMAND=( "emerge" "pmerge" "paludis" ) -PMS_OPTIONS=( "-Dv1 --keep-going" "-Do" "-i1" ) +PMS_COMMAND=( "emerge" "pmerge" "cave" ) +PMS_OPTIONS=( "-Dv1 --keep-going" "-Do" "resolve --execute --preserve-world" ) +PMS_PRETENDING_OPTIONS=( "-p" "-p" "--no-execute" ) PMS_INDEX=0 CUSTOM_PMS_COMMAND="" ADDITIONAL_OPTIONS="" @@ -134,7 +135,7 @@ has_version() { elif [[ "${PMS_COMMAND[${PMS_INDEX}]}" == "pmerge" ]]; then pquery --vdb "${1}" else - paludis --has-version "${1}" + cave has-version "${1}" fi } @@ -170,7 +171,7 @@ get_USE_PYTHON() { USE_PYTHON="$(/usr/bin/portageq envvar USE_PYTHON)" fi else - USE_PYTHON="$(paludis --environment-variable "${1}/${2}${3:+:}${3}::/?" USE_PYTHON)" + USE_PYTHON="$(cave print-id-environment-variable "${1}/${2}${3:+:}${3}::/?" --best --format %v --variable-name USE_PYTHON)" fi if [[ -z "${USE_PYTHON}" ]]; then USE_PYTHON="${NEW_PYTHON2_VERSION} ${NEW_PYTHON3_VERSION}" @@ -211,7 +212,7 @@ get_RESTRICT_PYTHON_ABIS() { grep "^RESTRICT_PYTHON_ABIS=" "${ebuild_path}" | sed -e "s/RESTRICT_PYTHON_ABIS=[\"']\(.*\)[\"']/\1/" fi else - paludis --environment-variable "${1}/${2}${3:+:}${3}::/?" RESTRICT_PYTHON_ABIS + cave print-id-environment-variable "${1}/${2}${3:+:}${3}::/?" --best --format %v --variable-name RESTRICT_PYTHON_ABIS fi } @@ -672,7 +673,7 @@ if [[ "${PMS_COMMAND[${PMS_INDEX}]}" == "emerge" ]] ; then fi # Only pretending? -[[ PRETEND -eq 1 ]] && PMS_OPTIONS[${PMS_INDEX}]="${PMS_OPTIONS[${PMS_INDEX}]} -p" +[[ PRETEND -eq 1 ]] && PMS_OPTIONS[${PMS_INDEX}]+=" ${PMS_PRETENDING_OPTIONS[${PMS_INDEX}]}" # (Pretend to) reinstall packages if [[ -n "${PKGS_TO_REMERGE}" ]]; then |