mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +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:
parent
525759b235
commit
a31f4571c2
@ -109,7 +109,7 @@ def main():
|
|||||||
# 'metadata' and 'tmp' are created in fdroid
|
# 'metadata' and 'tmp' are created in fdroid
|
||||||
os.mkdir('repo')
|
os.mkdir('repo')
|
||||||
shutil.copy(os.path.join(examplesdir, 'fdroid-icon.png'), fdroiddir)
|
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)
|
os.chmod('config.py', 0o0600)
|
||||||
else:
|
else:
|
||||||
logging.info('Looks like this is already an F-Droid repo, cowardly refusing to overwrite it...')
|
logging.info('Looks like this is already an F-Droid repo, cowardly refusing to overwrite it...')
|
||||||
|
8
setup.py
8
setup.py
@ -13,10 +13,10 @@ setup(name='FDroidServer',
|
|||||||
scripts=['fdroid', 'fd-commit'],
|
scripts=['fdroid', 'fd-commit'],
|
||||||
data_files=[
|
data_files=[
|
||||||
('share/doc/fdroidserver/examples',
|
('share/doc/fdroidserver/examples',
|
||||||
[ 'config.buildserver.py',
|
[ 'buildserver/config.buildserver.py',
|
||||||
'sampleconfigs/config.sample.py',
|
'examples/config.py',
|
||||||
'sampleconfigs/makebs.config.sample.py',
|
'examples/makebs.config.py',
|
||||||
'fdroid-icon.png']),
|
'fdroid-icon.png']),
|
||||||
],
|
],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'python-magic',
|
'python-magic',
|
||||||
|
Loading…
Reference in New Issue
Block a user