diff options
Diffstat (limited to 'paludis/repositories/e/ebuild/utils/doexe')
-rwxr-xr-x | paludis/repositories/e/ebuild/utils/doexe | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/paludis/repositories/e/ebuild/utils/doexe b/paludis/repositories/e/ebuild/utils/doexe index 92723cfd5..757a2d597 100755 --- a/paludis/repositories/e/ebuild/utils/doexe +++ b/paludis/repositories/e/ebuild/utils/doexe @@ -23,8 +23,8 @@ source "${PALUDIS_EBUILD_DIR}"/die_functions.bash -if [[ ! -d ${D} ]]; then - paludis_die_or_error "\${D} not valid; aborting" +if [[ ! -d ${!PALUDIS_IMAGE_DIR_VAR} ]]; then + paludis_die_or_error "\${${PALUDIS_IMAGE_DIR_VAR}} not valid; aborting" fi if [[ ! -d ${T} ]]; then @@ -35,9 +35,9 @@ if [[ ${#} -lt 1 ]]; then paludis_die_or_error "at least one argument needed" fi -if [[ ! -d "${D}${EXEDESTTREE}" ]]; then - if ! install -d "${D}${EXEDESTTREE}" ; then - paludis_die_or_error "could not create ${D}${EXEDESTTREE}" +if [[ ! -d "${!PALUDIS_IMAGE_DIR_VAR}${EXEDESTTREE}" ]]; then + if ! install -d "${!PALUDIS_IMAGE_DIR_VAR}${EXEDESTTREE}" ; then + paludis_die_or_error "could not create ${!PALUDIS_IMAGE_DIR_VAR}${EXEDESTTREE}" fi fi @@ -53,7 +53,7 @@ for x in "$@"; do else mysrc="${x}" fi - install ${EXEOPTIONS} "${mysrc}" "${D}${EXEDESTTREE}" || ret=2 + install ${EXEOPTIONS} "${mysrc}" "${!PALUDIS_IMAGE_DIR_VAR}${EXEDESTTREE}" || ret=2 done [[ 0 != "${ret}" ]] && paludis_die_or_error "doexe returned error ${ret}" |