Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 271029 Details for
Bug 358073
app-portage/gentoolkit improvement for revdep-rebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to use /tmp if /var/cache dir is gone
revdep-rebuild-cachedir-gone.patch (text/plain), 643 bytes, created by
James Broadhead
on 2011-04-24 18:29:44 UTC
(
hide
)
Description:
Patch to use /tmp if /var/cache dir is gone
Filename:
MIME Type:
Creator:
James Broadhead
Created:
2011-04-24 18:29:44 UTC
Size:
643 bytes
patch
obsolete
>--- /usr/bin/revdep-rebuild 2010-08-22 00:43:27.000000000 +0200 >+++ revdep-rebuild 2011-04-24 20:28:20.689000031 +0200 >@@ -549,9 +549,10 @@ > local new_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 >- if [[ "$uid" == "root" ]]; then >- local tmp_target="/var/cache/${APP_NAME}" >+ # Find a place to put temporary files >+ local proposed_target="/var/cache/${APP_NAME}" >+ if [[ "$uid" == "root" ]] && [[ -d $proposed_target ]] ; then >+ local tmp_target=$proposed_target > else > local tmp_target="$(mktemp -d -t revdep-rebuild.XXXXXXXXXX)" > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 358073
: 271029