"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "viewvc-install" between
viewvc-1.1.27.tar.gz and viewvc-1.1.28.tar.gz

About: ViewVC is a browser interface for CVS and Subversion version control repositories.

viewvc-install  (viewvc-1.1.27):viewvc-install  (viewvc-1.1.28)
#!/usr/bin/env python #!/usr/bin/env python
# -*- Mode: python -*- # -*- Mode: python -*-
# #
# Copyright (C) 1999-2019 The ViewCVS Group. All Rights Reserved. # Copyright (C) 1999-2020 The ViewCVS Group. All Rights Reserved.
# #
# By using this file, you agree to the terms and conditions set forth in # By using this file, you agree to the terms and conditions set forth in
# the LICENSE.html file which can be found at the top level of the ViewVC # the LICENSE.html file which can be found at the top level of the ViewVC
# distribution or at http://viewvc.org/license-1.html. # distribution or at http://viewvc.org/license-1.html.
# #
# For more information, visit http://viewvc.org/ # For more information, visit http://viewvc.org/
# #
# ----------------------------------------------------------------------- # -----------------------------------------------------------------------
# #
# Install script for ViewVC # Install script for ViewVC
skipping to change at line 317 skipping to change at line 317
# If the item is a subdirectory, recurse. Otherwise, install the file. # If the item is a subdirectory, recurse. Otherwise, install the file.
if os.path.isdir(os.path.join(src_path, fname)): if os.path.isdir(os.path.join(src_path, fname)):
install_tree(orig_src_child, orig_dst_child, 0, prompt_replace) install_tree(orig_src_child, orig_dst_child, 0, prompt_replace)
else: else:
set_paths = 0 set_paths = 0
compile_it = fname[-3:] == '.py' compile_it = fname[-3:] == '.py'
install_file(orig_src_child, orig_dst_child, 0644, install_file(orig_src_child, orig_dst_child, 0644,
set_paths, prompt_replace, compile_it) set_paths, prompt_replace, compile_it)
# Check for .py and .pyc files that don't belong in installation. # Check for .py and .pyc files that don't belong in installation.
# (Of course, if we didn't end up actually creating/populating
# destdir_path, we can skip this altogether.)
if not os.path.exists(destdir_path):
return
for fname in os.listdir(destdir_path): for fname in os.listdir(destdir_path):
if not os.path.isfile(os.path.join(destdir_path, fname)) or \ if not os.path.isfile(os.path.join(destdir_path, fname)) or \
not ((fname[-3:] == '.py' and fname not in files) or not ((fname[-3:] == '.py' and fname not in files) or
(fname[-4:] == '.pyc' and fname[:-1] not in files)): (fname[-4:] == '.pyc' and fname[:-1] not in files)):
continue continue
# If we get here, there's cruft. # If we get here, there's cruft.
delete = None delete = None
if CLEAN_MODE == 'true': if CLEAN_MODE == 'true':
delete = 1 delete = 1
 End of changes. 2 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)