Change TMPDIR references to WORKING_DIR in messages
authorfuzzyray <fuzzyray@gentoo.org>
Fri, 22 Aug 2008 19:03:08 +0000 (19:03 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Fri, 22 Aug 2008 19:03:08 +0000 (19:03 -0000)
svn path=/; revision=504

trunk/src/revdep-rebuild/revdep-rebuild

index be393f37a8f0a135fc2e2683a16b4256c279a2c5..c2f3f570298d63daaf13552eae4f5d3f4a528809 100755 (executable)
@@ -527,7 +527,6 @@ get_search_env() {
        local old_env
        local uid=$(python -c 'import os; import pwd; print pwd.getpwuid(os.getuid())[0]')
        # Find a place to put temporary files
-       # Use "${TMPDIR}/revdep-rebuild" or /tmp/revdep-rebuild
        if [[ "$uid" == "root" ]]; then
                local tmp_target="/var/cache/${APP_NAME}"
        else
@@ -1067,13 +1066,13 @@ cleanup() {
                einfo '  (you can edit package/ebuild list first)'
                einfo
                einfo 'To remove temporary files, please run:'
-               einfo "rm ${TMPDIR}/$APP_NAME/*.rr"
+               einfo "rm ${WORKING_DIR}/*.rr"
                show_unowned_files
                exit $EMERGE_STATUS
        elif is_real_merge; then
                trap_cmd() {
                        eerror "terminated. Please remove the temporary files manually:"
-                       eerror "rm ${TMPDIR}/$APP_NAME/*.rr"
+                       eerror "rm ${WORKING_DIR}/*.rr"
                        exit 1
                }
                [[ "${SKIP_LIST[@]}" != "" ]] && list_skipped_packages