Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 297075 Details for
Bug 376737
app-admin/webapp-config-1.50.18 doesn't find installed webapps
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cleaner-backwards-compat.patch
cleaner-backwards-compat.patch (text/plain), 1.39 KB, created by
Michael Palimaka (kensington)
on 2011-12-27 12:50:44 UTC
(
hide
)
Description:
cleaner-backwards-compat.patch
Filename:
MIME Type:
Creator:
Michael Palimaka (kensington)
Created:
2011-12-27 12:50:44 UTC
Size:
1.39 KB
patch
obsolete
>From 1b02dc7026c63716b48e296ca3aea4daff6e0541 Mon Sep 17 00:00:00 2001 >From: Michael <kensington@astralcloak.net> >Date: Tue, 27 Dec 2011 23:39:29 +1100 >Subject: [PATCH] Fix bug #376737 by adding backwards-compatibility for packages that are installed into ${PN} instead of ${CAT}/${PN}. > >--- > sbin/webapp-cleaner | 15 ++++++++++++--- > 1 files changed, 12 insertions(+), 3 deletions(-) > >diff --git a/sbin/webapp-cleaner b/sbin/webapp-cleaner >index 20ca8bd..bfec623 100755 >--- a/sbin/webapp-cleaner >+++ b/sbin/webapp-cleaner >@@ -2,6 +2,8 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: $ > >+ATOM= >+CAT= > PN= > > ACTION= >@@ -56,12 +58,12 @@ function sanity_checks() { > exit 1 > fi > >- if [[ $(expr index "${PN}" "/") == "0" ]] ; then >+ if [[ "${CAT}x" == "x" || "${PN}x" == "x" ]]; then > eerror "Package name must be in the form CATEGORY/PN" > exit 1 > fi > >- if [[ ! -d "${WEBAPP_DIR}/${PN}" ]]; then >+ if [[ ! -d "${WEBAPP_DIR}/${CAT}/${PN}" && ! -d "${WEBAPP_DIR}/${PN}" ]]; then > eerror "${PN} not found" > exit 1 > fi >@@ -133,7 +135,8 @@ function process_opts() { > ACTION="help" > ;; > *) >- PN="$1" >+ ATOM="${1}" >+ parse_atom > ;; > esac > >@@ -141,6 +144,12 @@ function process_opts() { > done > } > >+parse_atom() { >+ local pos=$(expr index "${ATOM}" "/") >+ CAT=${ATOM:0:$pos - 1} >+ PN=${ATOM:$pos} >+} >+ > process_opts $@ > > sanity_checks >-- >1.7.3.4 >
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 376737
: 297075