Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 97005 Details for
Bug 14321
CONFIG_PROTECT_FILES & CONFIG_PROTECT_FILES_MASK
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
etc-update support for individual files
etc-update.patch (text/plain), 1.03 KB, created by
Zac Medico
on 2006-09-14 14:14:45 UTC
(
hide
)
Description:
etc-update support for individual files
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2006-09-14 14:14:45 UTC
Size:
1.03 KB
patch
obsolete
>diff --git a/bin/etc-update b/bin/etc-update >index 578ae12..280d6b7 100755 >--- a/bin/etc-update >+++ b/bin/etc-update >@@ -33,6 +33,8 @@ function scan() { > mkdir ${TMP}/files || die "Failed mkdir command!" 1 > count=0 > input=0 >+ local find_opts >+ local my_basename > > # Sanity check to make sure diff exists and works > if ! diff -v &>/dev/null ; then >@@ -41,10 +43,16 @@ function scan() { > fi > > for path in ${CONFIG_PROTECT} ; do >- [ ! -d ${path} ] && continue >+ find_opts="-name ._cfg????_*" >+ if [ ! -d "${path}" ]; then >+ [ ! -f "${path}" ] && continue >+ my_basename="${path##*/}" >+ path="${path%/*}" >+ find_opts="-maxdepth 1 -name ._cfg????_${my_basename}" >+ fi > > ofile="" >- for file in $(find ${path}/ -iname '._cfg????_*' ! -name '.*~' ! -name '.*.bak' | >+ for file in $(find ${path}/ ${find_opts} ! -name '.*~' ! -name '.*.bak' | > sed -e "s:\(^.*/\)\(\._cfg[0-9]*_\)\(.*$\):\1\2\3\%\2\%\3:" | > sort -t'%' -k3 -k2 | LANG=POSIX LC_ALL=POSIX cut -f1 -d'%'); do > rpath=$(echo "${file/\/\///}" | sed -e "s:/[^/]*$::")
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 14321
:
25352
|
96837
|
96850
|
96915
| 97005 |
97009