Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 351592 Details for
Bug 231482
app-admin/webapp-config-1.50.16-r1: command line options to copy instead of hard links
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds the copy option in /etc/vhosts/webapp-config as well as repairs the behavior of the --copy flag and man page alterations to relfect the removal of the --cp flag.
Adds-configurable-copy-option-in-config.patch (text/plain), 3.07 KB, created by
Devan Franchini (RETIRED)
on 2013-06-21 19:13:59 UTC
(
hide
)
Description:
Adds the copy option in /etc/vhosts/webapp-config as well as repairs the behavior of the --copy flag and man page alterations to relfect the removal of the --cp flag.
Filename:
MIME Type:
Creator:
Devan Franchini (RETIRED)
Created:
2013-06-21 19:13:59 UTC
Size:
3.07 KB
patch
obsolete
>From 443920f6f9d289cc2cf1bd4fd68ac3316181ea2f Mon Sep 17 00:00:00 2001 >From: Devan Franchini <twitch153@hotmail.com> >Date: Fri, 21 Jun 2013 14:43:07 -0400 >Subject: [PATCH] Webappconfig/{config.py,worker.py} Adds configurable \"copy\" > option in /etc/vhosts/webapp-config configuration file for vhost_link_type as > well as repairs the previous damage in which the behavior of the \"--copy\" > flag was being ignored; due to the fact that the boolean \"g_copy\" was not > being passed down throughout the program because of the extra \"--cp\" flag. > Man page alterations have also been made to reflect the removal of the > \"--cp\" flag in the program. >X-Gentoo-Bug: 231482 >X-Gentoo-Bug-URL: https://bugs.gentoo.org/231482 > >--- > WebappConfig/config.py | 11 ++++++----- > WebappConfig/worker.py | 2 +- > doc/webapp-config.8.xml | 1 - > 3 files changed, 7 insertions(+), 7 deletions(-) > >diff --git a/WebappConfig/config.py b/WebappConfig/config.py >index fd106c5..9f313c8 100644 >--- a/WebappConfig/config.py >+++ b/WebappConfig/config.py >@@ -490,8 +490,7 @@ class Config: > ' when creating virtual files. <NOTE>: some pack' > 'ages will not work if you use this option') > >- group.add_option('--cp', >- '--copy', >+ group.add_option('--copy', > action='store_true', > help = 'Directly copy the webapp files from' > ' the /usr/share/webapps/ directory when installing' >@@ -999,12 +998,14 @@ class Config: > > self.config.set('USER', 'g_link_type', 'soft') > >- elif (self.config.has_option('USER', 'g_copy') and >- self.config.getboolean('USER', 'g_copy')): >+ elif ((self.config.has_option('USER', 'vhost_link_type') and >+ self.config.get('USER', 'vhost_link_type') == 'soft') or >+ (self.config.has_option('USER', 'g_copy') and >+ self.config.getboolean('USER', 'g_copy'))): > > OUT.debug('Selecting copying of links', 7) > >- self.config.set('USER', 'g_link_type', 'clone') >+ self.config.set('USER', 'g_link_type', 'copy') > > else: > >diff --git a/WebappConfig/worker.py b/WebappConfig/worker.py >index 250f068..5b10060 100644 >--- a/WebappConfig/worker.py >+++ b/WebappConfig/worker.py >@@ -508,7 +508,7 @@ class WebappAdd: > if self.__v: > OUT.warn('Failed to softlink (' + str(e) + ')') > >- elif self.__link_type == 'clone': >+ elif self.__link_type == 'copy': > try: > > OUT.debug('Trying to copy files directly', 8) >diff --git a/doc/webapp-config.8.xml b/doc/webapp-config.8.xml >index 5b0048b..459e301 100644 >--- a/doc/webapp-config.8.xml >+++ b/doc/webapp-config.8.xml >@@ -473,7 +473,6 @@ > </varlistentry> > > <varlistentry> >- <term><option>--cp</option></term> > <term><option>--copy</option></term> > <listitem> > <para>Use this option to create the virtual copy by copying the files from the <filename>/usr/share/webapps/</filename> directories.</para> >-- >1.8.1.5 >
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 231482
:
340810
|
340812
|
340816
|
343568
|
343574
|
343688
|
349180
|
351592
|
351602