Folders overwrite, shaarli.png added to static files

This commit is contained in:
Marko Mackic 2017-01-21 05:20:15 +01:00 committed by James Valleroy
parent db636ea23c
commit 8ba763bf5a
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 6 additions and 1 deletions

View File

@ -22,6 +22,7 @@ Plinth setup file
from distutils import log
from distutils.command.build import build
from distutils.dir_util import remove_tree
from distutils.command.clean import clean
from distutils.command.install_data import install_data
from distutils.core import Command
@ -112,6 +113,7 @@ class CustomClean(clean):
"""Execute clean command"""
subprocess.check_call(['rm', '-rf', 'Plinth.egg-info/'])
subprocess.check_call(['make', '-C', 'doc', 'clean'])
for dir_path, dir_names, file_names in os.walk('plinth/locale/'):
for file_name in file_names:
if file_name.endswith('.mo'):
@ -139,8 +141,11 @@ class CustomInstallData(install_data):
log.info("creating directory '%s'", directory)
os.makedirs(directory)
# Recursively copy directories
# Recursively overwrite directories
for target, source in DIRECTORIES_TO_COPY:
remove_tree(target)
if self.root:
target = change_root(self.root, target)

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB