Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 231482 | Differences between
and this patch

Collapse All | Expand All

(-)a/WebappConfig/config.py (-5 / +6 lines)
Lines 490-497 class Config: Link Here
490
                         ' when creating virtual files. <NOTE>: some pack'
490
                         ' when creating virtual files. <NOTE>: some pack'
491
                         'ages will not work if you use this option')
491
                         'ages will not work if you use this option')
492
492
493
        group.add_option('--cp',
493
        group.add_option('--copy',
494
                         '--copy',
495
                         action='store_true',
494
                         action='store_true',
496
                         help = 'Directly copy the webapp files from'
495
                         help = 'Directly copy the webapp files from'
497
             ' the /usr/share/webapps/ directory when installing'
496
             ' the /usr/share/webapps/ directory when installing'
Lines 999-1010 class Config: Link Here
999
998
1000
            self.config.set('USER', 'g_link_type', 'soft')
999
            self.config.set('USER', 'g_link_type', 'soft')
1001
1000
1002
        elif (self.config.has_option('USER', 'g_copy') and
1001
        elif ((self.config.has_option('USER', 'vhost_link_type') and
1003
              self.config.getboolean('USER', 'g_copy')):
1002
               self.config.get('USER', 'vhost_link_type') == 'soft') or
1003
              (self.config.has_option('USER', 'g_copy') and
1004
               self.config.getboolean('USER', 'g_copy'))):
1004
1005
1005
            OUT.debug('Selecting copying of links', 7)
1006
            OUT.debug('Selecting copying of links', 7)
1006
1007
1007
            self.config.set('USER', 'g_link_type', 'clone')
1008
            self.config.set('USER', 'g_link_type', 'copy')
1008
1009
1009
        else:
1010
        else:
1010
1011
(-)a/WebappConfig/worker.py (-1 / +1 lines)
Lines 508-514 class WebappAdd: Link Here
508
                    if self.__v:
508
                    if self.__v:
509
                        OUT.warn('Failed to softlink (' + str(e) + ')')
509
                        OUT.warn('Failed to softlink (' + str(e) + ')')
510
510
511
            elif self.__link_type == 'clone':
511
            elif self.__link_type == 'copy':
512
                try:
512
                try:
513
513
514
                    OUT.debug('Trying to copy files directly', 8)
514
                    OUT.debug('Trying to copy files directly', 8)
(-)a/doc/webapp-config.8.xml (-2 lines)
Lines 473-479 Link Here
473
	  </varlistentry>
473
	  </varlistentry>
474
474
475
	  <varlistentry>
475
	  <varlistentry>
476
	    <term><option>--cp</option></term>
477
	    <term><option>--copy</option></term>
476
	    <term><option>--copy</option></term>
478
	    <listitem>
477
	    <listitem>
479
	      <para>Use this option to create the virtual copy by copying the files from the <filename>/usr/share/webapps/</filename> directories.</para>
478
	      <para>Use this option to create the virtual copy by copying the files from the <filename>/usr/share/webapps/</filename> directories.</para>
480
- 

Return to bug 231482