diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-07-12 00:06:19 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-07-12 00:06:19 +0000 |
commit | 4b5d269189f5ceb61f4319339c358b7f8b9017ee (patch) | |
tree | 488235caf6a803f195f233d68e413f279d365502 | |
parent | Filter out --getbinpkg, --getbinpkgonly, --usepkg and --usepkgonly options in... (diff) | |
download | python-updater-4b5d269189f5ceb61f4319339c358b7f8b9017ee.tar.gz python-updater-4b5d269189f5ceb61f4319339c358b7f8b9017ee.tar.bz2 python-updater-4b5d269189f5ceb61f4319339c358b7f8b9017ee.zip |
Fix typo in get_portage_python() introduced in r170. Use [[ instead of [.
-rwxr-xr-x | python-updater | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/python-updater b/python-updater index 179b6fa..2955b57 100755 --- a/python-updater +++ b/python-updater @@ -133,9 +133,9 @@ get_old_pyver() { # get_portage_python(oldpy,newpy) # Find where portage is, in pythonX.Y or somewhere else? get_portage_python() { - if [[ $# -lt 3 ]]; then - eerror "Missing arguments." - exit 1 + if [[ $# -lt 2 ]]; then + eerror "get_portage_python(): Missing arguments." + exit 1 fi local oldpy="$1" newpy="$2" @@ -336,7 +336,7 @@ for content in `find ${PKG_DBDIR}/ -name CONTENTS`; do # Check if package is in PKGS_MANUAL if [[ CHECK_MANUAL -ne 0 ]]; then for pkg in ${PKGS_MANUAL}; do - if [ -z "${CATPKG##${pkg}}" ]; then + if [[ -z "${CATPKG##${pkg}}" ]]; then exception=2 break; fi @@ -444,7 +444,7 @@ export EMERGE_DEFAULT_OPTS="${emerge_default_opts# }" # (Pretend to) remerge packages if [[ -n "${PKGS_TO_REMERGE}" ]]; then pmscmd="${CUSTOM_PMS_COMMAND}" - [ -z "${pmscmd}" ] && pmscmd="${PMS_COMMAND[${PMS_INDEX}]}" + [[ -z "${pmscmd}" ]] && pmscmd="${PMS_COMMAND[${PMS_INDEX}]}" cmd="${pmscmd} ${PMS_OPTIONS[${PMS_INDEX}]} ${PKGS_TO_REMERGE}" einfo ${cmd} ${cmd} |