Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 259533 Details for
Bug 347213
[patch] sys-kernel/genkernel-3.4.10.907 rm: cannot remove `/var/cache/genkernel/src': Is a directory
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix warning "rm: cannot remove `/var/cache/genkernel/src': Is a directory"
0001-Fix-warning-rm-cannot-remove-var-cache-genkernel-src.patch (text/plain), 913 bytes, created by
Sebastian Pipping
on 2011-01-11 11:22:24 UTC
(
hide
)
Description:
Fix warning "rm: cannot remove `/var/cache/genkernel/src': Is a directory"
Filename:
MIME Type:
Creator:
Sebastian Pipping
Created:
2011-01-11 11:22:24 UTC
Size:
913 bytes
patch
obsolete
>From 5a7012ced6547dea49fe2bf9b42aceea9e6abbda Mon Sep 17 00:00:00 2001 >From: Sebastian Pipping <sebastian@pipping.org> >Date: Tue, 11 Jan 2011 12:18:05 +0100 >Subject: [PATCH] Fix warning "rm: cannot remove `/var/cache/genkernel/src': Is a directory" (bug #347213) > >--- > gen_funcs.sh | 8 +++----- > 1 files changed, 3 insertions(+), 5 deletions(-) > >diff --git a/gen_funcs.sh b/gen_funcs.sh >index 2a87b14..12722ca 100755 >--- a/gen_funcs.sh >+++ b/gen_funcs.sh >@@ -250,13 +250,11 @@ setup_cache_dir() > if [ "${CLEAR_CACHE_DIR}" == 'yes' ] > then > print_info 1 "Clearing cache dir contents from ${CACHE_DIR}" >- CACHE_DIR_CONTENTS=`ls ${CACHE_DIR}|grep -v CVS|grep -v cpio|grep -v README` >- >- for i in ${CACHE_DIR_CONTENTS} >+ while read i > do > print_info 1 " >> removing ${i}" >- rm ${CACHE_DIR}/${i} >- done >+ rm "${i}" >+ done < <(find "${CACHE_DIR}" -maxdepth 1 -type f -name '*.tar.*') > fi > > } >-- >1.7.4.rc1 >
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 347213
:
255927
| 259533