Lines 549-557
Link Here
|
549 |
local new_env |
549 |
local new_env |
550 |
local old_env |
550 |
local old_env |
551 |
local uid=$(python -c 'import os; import pwd; print pwd.getpwuid(os.getuid())[0]') |
551 |
local uid=$(python -c 'import os; import pwd; print pwd.getpwuid(os.getuid())[0]') |
552 |
# Find a place to put temporary files |
552 |
# Find a place to put temporary files |
553 |
if [[ "$uid" == "root" ]]; then |
553 |
local proposed_target="/var/cache/${APP_NAME}" |
554 |
local tmp_target="/var/cache/${APP_NAME}" |
554 |
if [[ "$uid" == "root" ]] && [[ -d $proposed_target ]] ; then |
|
|
555 |
local tmp_target=$proposed_target |
555 |
else |
556 |
else |
556 |
local tmp_target="$(mktemp -d -t revdep-rebuild.XXXXXXXXXX)" |
557 |
local tmp_target="$(mktemp -d -t revdep-rebuild.XXXXXXXXXX)" |
557 |
fi |
558 |
fi |