mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
Folders overwrite, shaarli.png added to static files
This commit is contained in:
parent
db636ea23c
commit
8ba763bf5a
7
setup.py
7
setup.py
@ -22,6 +22,7 @@ Plinth setup file
|
|||||||
|
|
||||||
from distutils import log
|
from distutils import log
|
||||||
from distutils.command.build import build
|
from distutils.command.build import build
|
||||||
|
from distutils.dir_util import remove_tree
|
||||||
from distutils.command.clean import clean
|
from distutils.command.clean import clean
|
||||||
from distutils.command.install_data import install_data
|
from distutils.command.install_data import install_data
|
||||||
from distutils.core import Command
|
from distutils.core import Command
|
||||||
@ -112,6 +113,7 @@ class CustomClean(clean):
|
|||||||
"""Execute clean command"""
|
"""Execute clean command"""
|
||||||
subprocess.check_call(['rm', '-rf', 'Plinth.egg-info/'])
|
subprocess.check_call(['rm', '-rf', 'Plinth.egg-info/'])
|
||||||
subprocess.check_call(['make', '-C', 'doc', 'clean'])
|
subprocess.check_call(['make', '-C', 'doc', 'clean'])
|
||||||
|
|
||||||
for dir_path, dir_names, file_names in os.walk('plinth/locale/'):
|
for dir_path, dir_names, file_names in os.walk('plinth/locale/'):
|
||||||
for file_name in file_names:
|
for file_name in file_names:
|
||||||
if file_name.endswith('.mo'):
|
if file_name.endswith('.mo'):
|
||||||
@ -139,8 +141,11 @@ class CustomInstallData(install_data):
|
|||||||
log.info("creating directory '%s'", directory)
|
log.info("creating directory '%s'", directory)
|
||||||
os.makedirs(directory)
|
os.makedirs(directory)
|
||||||
|
|
||||||
# Recursively copy directories
|
# Recursively overwrite directories
|
||||||
for target, source in DIRECTORIES_TO_COPY:
|
for target, source in DIRECTORIES_TO_COPY:
|
||||||
|
|
||||||
|
remove_tree(target)
|
||||||
|
|
||||||
if self.root:
|
if self.root:
|
||||||
target = change_root(self.root, target)
|
target = change_root(self.root, target)
|
||||||
|
|
||||||
|
|||||||
BIN
static/themes/default/icons/shaarli.png
Normal file
BIN
static/themes/default/icons/shaarli.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
Loading…
x
Reference in New Issue
Block a user