* viewvc-install
(install_file, install_tree): Replace '/' with the OS-specific directory separator character in src_path before processing. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1458 8cb11bc2-c004-0410-86c3-e597b4017df7remotes/authz-dev
parent
818c168978
commit
9caee0c04d
|
@ -136,6 +136,7 @@ def install_file(src_path, dest_path, mode, subst_path_vars,
|
|||
files that differ from the to-be-installed version. If COMPILE_IT
|
||||
is set, compile the file as a Python module."""
|
||||
|
||||
src_path = string.replace(src_path, '/', os.sep)
|
||||
dest_path = os.path.join(ROOT_DIR, dest_path)
|
||||
overwrite = None
|
||||
exists = os.path.exists(DESTDIR + dest_path)
|
||||
|
@ -270,6 +271,7 @@ def replace_file(src_path, dest_path, mode, subst_path_vars,
|
|||
|
||||
|
||||
def install_tree(src_path, dst_path, prompt_replace):
|
||||
src_path = string.replace(src_path, '/', os.sep)
|
||||
dest_path = os.path.join(ROOT_DIR, dst_path)
|
||||
|
||||
# Get a list of items in the directory.
|
||||
|
|
Loading…
Reference in New Issue