1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-07 01:40:10 +02:00

fix example files install in setup.py

This also makes the file layout in git basically the same as the installed
file layout, using an examples/ dir.  I'm not sure if config.buildserver.py
is an example conf file, or a conf file that is actually in use, so I did
not move it.
This commit is contained in:
Hans-Christoph Steiner 2014-03-31 21:29:51 -04:00
parent 525759b235
commit a31f4571c2
4 changed files with 5 additions and 5 deletions

View File

@ -109,7 +109,7 @@ def main():
# 'metadata' and 'tmp' are created in fdroid
os.mkdir('repo')
shutil.copy(os.path.join(examplesdir, 'fdroid-icon.png'), fdroiddir)
shutil.copyfile(os.path.join(examplesdir, 'sampleconfigs', 'config.py'), 'config.py')
shutil.copyfile(os.path.join(examplesdir, 'config.py'), 'config.py')
os.chmod('config.py', 0o0600)
else:
logging.info('Looks like this is already an F-Droid repo, cowardly refusing to overwrite it...')

View File

@ -13,10 +13,10 @@ setup(name='FDroidServer',
scripts=['fdroid', 'fd-commit'],
data_files=[
('share/doc/fdroidserver/examples',
[ 'config.buildserver.py',
'sampleconfigs/config.sample.py',
'sampleconfigs/makebs.config.sample.py',
'fdroid-icon.png']),
[ 'buildserver/config.buildserver.py',
'examples/config.py',
'examples/makebs.config.py',
'fdroid-icon.png']),
],
install_requires=[
'python-magic',