Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 340810 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 --copy flag for webapp-config
0001-worker.py-copy-flag.patch (text/plain), 2.43 KB, created by
Devan Franchini (RETIRED)
on 2013-03-02 22:13:18 UTC
(
hide
)
Description:
Adds --copy flag for webapp-config
Filename:
MIME Type:
Creator:
Devan Franchini (RETIRED)
Created:
2013-03-02 22:13:18 UTC
Size:
2.43 KB
patch
obsolete
>--- worker.py 2013-03-02 14:42:41.950212511 -0500 >+++ worker.py.alt 2013-03-01 23:30:57.581931486 -0500 >@@ -493,14 +493,37 @@ > OUT.debug('Trying to softlink', 8) > > if not self.__p: >+ if self.__v: >+ print("\n>>> SOFTLINKING FILE: ") >+ print(">>> Source: " + src_name + >+ "\n>>> Destination: " + dst_name + "\n") > os.symlink(src_name, dst_name) >- >+ > my_contenttype = 'sym' > > except Exception as e: > > if self.__v: > OUT.warn('Failed to softlink (' + str(e) + ')') >+ >+ elif self.__link_type == 'clone': >+ try: >+ >+ OUT.debug('Trying to copy files directly', 8) >+ >+ if not self.__p: >+ if self.__v: >+ print("\n>>> COPYING FILE: ") >+ print(">>> Source: " + src_name + >+ "\n>>> Destination: " + dst_name + "\n") >+ shutil.copy(src_name, dst_name) >+ >+ my_contenttype = 'file' >+ >+ except Exception as e: >+ >+ if self.__v: >+ OUT.warn('Failed to copy (' + str(e) + ')') > > elif os.path.islink(src_name): > try: >@@ -508,6 +531,10 @@ > OUT.debug('Trying to copy symlink', 8) > > if not self.__p: >+ if self.__v: >+ print("\n>>> SYMLINK COPY: ") >+ print(">>> Source: " + src_name + >+ "\n>>> Destination: " + dst_name + "\n") > os.symlink(os.readlink(src_name), dst_name) > > my_contenttype = 'sym' >@@ -523,7 +550,11 @@ > OUT.debug('Trying to hardlink', 8) > > if not self.__p: >- os.link(src_name, dst_name) >+ if self.__v: >+ print("\n>>> HARDLINKING FILE: ") >+ print(">>> Source: " + src_name + >+ "\n>>> Destination: " + dst_name + "\n") >+ os.link(src_name, dst_name) > > my_contenttype = 'file' > >@@ -533,8 +564,13 @@ > OUT.warn('Failed to hardlink (' + str(e) + ')') > > if not my_contenttype: >+ > if not self.__p: >- shutil.copy(src_name, dst_name) >+ if self.__v: >+ print("\n>>> COPYING FILE: ") >+ print(">>> Source: " + src_name + >+ "\n>>> Destination: " + dst_name + "\n") >+ shutil.copy(src_name, dst_name) > my_contenttype = 'file' > >
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