Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 327914 Details for
Bug 434914
app-admin/webapp-config: Manage recursive server-owned dirs independently
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Put the recursive server own dir references in a new file
webapp.eclass.patch (text/plain), 1.51 KB, created by
Vincent Brillault
on 2012-11-01 08:18:58 UTC
(
hide
)
Description:
Put the recursive server own dir references in a new file
Filename:
MIME Type:
Creator:
Vincent Brillault
Created:
2012-11-01 08:18:58 UTC
Size:
1.51 KB
patch
obsolete
>--- a/eclass/webapp.eclass >+++ a/eclass/webapp.eclass >@@ -83,6 +83,19 @@ > fi > } > >+webapp_checkdirexists() { >+ debug-print-function $FUNCNAME $* >+ >+ local my_prefix=${2:+${2}/} >+ >+ if [[ ! -d "${my_prefix}${1}" ]]; then >+ msg="ebuild fault: dir '${1}' not found" >+ eerror "$msg" >+ eerror "Please report this as a bug at http://bugs.gentoo.org/" >+ die "$msg" >+ fi >+} >+ > webapp_check_installedat() { > debug-print-function $FUNCNAME $* > ${WEBAPP_CONFIG} --show-installed -h localhost -d "${INSTALL_DIR}" 2> /dev/null >@@ -236,7 +249,7 @@ > cp "${2}" "${D}/${MY_APPDIR}/postupgrade-${1}.txt" > } > >-# helper for webapp_serverowned() >+# helpers for webapp_serverowned() > _webapp_serverowned() { > debug-print-function $FUNCNAME $* > >@@ -248,6 +261,17 @@ > echo "${my_file}" >> "${D}/${WA_SOLIST}" > } > >+_webapp_recursive_serverowned() { >+ debug-print-function $FUNCNAME $* >+ >+ webapp_checkdirexists "${1}" "${D}" >+ local my_dir="$(webapp_strip_appdir "${1}")" >+ my_dir="$(webapp_strip_cwd "${my_dir}")" >+ >+ elog "(server recursively owned) ${my_dir}" >+ echo "${my_dir}" >> "${D}/${WA_SODLIST}" >+} >+ > # @FUNCTION: webapp_serverowned > # @USAGE: [-R] <file> [more files ...] > # @DESCRIPTION: >@@ -257,14 +281,11 @@ > webapp_serverowned() { > debug-print-function $FUNCNAME $* > >- local a m >+ local m > if [[ "${1}" == "-R" ]]; then > shift > for m in "$@"; do >- find "${D}${m}" | while read a; do >- a=$(webapp_strip_d "${a}") >- _webapp_serverowned "${a}" >- done >+ _webapp_recursive_serverowned "${m}" > done > else > for m in "$@"; do
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 434914
:
323676
|
323678
|
323680
| 327914