Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 323678 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]
webapp.eclass patch: put the recursive server own dirs in a new file
webapp.eclass.patch (text/plain), 1.59 KB, created by
Vincent Brillault
on 2012-09-13 16:05:47 UTC
(
hide
)
Description:
webapp.eclass patch: put the recursive server own dirs in a new file
Filename:
MIME Type:
Creator:
Vincent Brillault
Created:
2012-09-13 16:05:47 UTC
Size:
1.59 KB
patch
obsolete
>--- /usr/portage/eclass/webapp.eclass 2012-07-18 17:01:14.000000000 +0200 >+++ /usr/local/portage/eclass/webapp.eclass 2012-09-13 18:00:02.392214188 +0200 >@@ -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 >@@ -244,8 +257,8 @@ > local my_file="$(webapp_strip_appdir "${1}")" > my_file="$(webapp_strip_cwd "${my_file}")" > >- elog "(server owned) ${my_file}" >- echo "${my_file}" >> "${D}/${WA_SOLIST}" >+ elog "(server owned${3}) ${my_file}" >+ echo "${my_file}" >> "${D}/${2}" > } > > # @FUNCTION: webapp_serverowned >@@ -261,14 +274,11 @@ > 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_serverowned "${m}" "${WA_SODLIST}" "recursively" > done > else > for m in "$@"; do >- _webapp_serverowned "${m}" >+ _webapp_serverowned "${m}" "${WA_SOLIST}" "" > done > fi > } >@@ -413,9 +423,7 @@ > ewarn "This ebuild may be overwriting important files." > ewarn > echo >- if has "${EAPI:-0}" 0 1 2; then >- ebeep 10 >- fi >+ ebeep 10 > elif [[ "$(echo ${my_output} | awk '{ print $1 }')" != "${PN}" ]]; then > echo > eerror "You already have ${my_output} installed in ${my_dir}"
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