1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-21 04:10:37 +02:00
Commit Graph

31 Commits

Author SHA1 Message Date
Hans-Christoph Steiner
4acab21d81
fix: avoid making the parent directory redundantly in test case 2024-06-04 20:52:39 +08:00
proletarius101
99a3823621
fix: ModuleNotFoundError 2024-06-04 20:52:39 +08:00
proletarius101
76432199be
lint: fix black formatting 2024-06-04 20:52:39 +08:00
proletarius101
df28c1e6c3
fix(deploy): remove the index-only mode from elsewhere except the config file
To enable per-remote configuration
2024-06-04 20:52:39 +08:00
proletarius101
f2fcfeabe5
style: fix lint 2024-06-04 20:49:35 +08:00
proletarius101
a4247eea0d
style: fix lint 2024-06-04 20:49:35 +08:00
proletarius101
221739b653
refactor: use _get_index_file_paths() instead of this mix of --include/--exclude 2024-06-04 20:49:07 +08:00
proletarius101
c7574037a9
refactor: remove the support of the index only mode when syncing to the local filesystem 2024-06-04 20:45:22 +08:00
proletarius101
cc75f2f9a4
feat(deploy): add index only mode in update_servergitmirrors 2024-06-04 20:43:47 +08:00
proletarius101
e22f7e52a8
style(deploy): remove unused imports 2024-06-04 20:43:03 +08:00
proletarius101
1f3f02765d
test(deploy): add test cases for update_awsbucket_libcloud and fix errors 2024-06-04 20:43:03 +08:00
proletarius101
91cf352b96
test(deploy): add test cases for update_awsbucket_s3cmd 2024-06-04 20:43:03 +08:00
proletarius101
5e3b474a1c
fix(deploy): add test cases for local copy mode and fix issues 2024-06-04 20:43:03 +08:00
proletarius101
160c23a547
fix(deploy): add test cases for server webroot mode and fix issues 2024-06-04 20:40:34 +08:00
proletarius101
742381a923
test(deploy): properly test non-index-only mode 2024-06-04 20:38:44 +08:00
paul mayero
7aabfbcbf0 Adding rclone as an option to fdroid deploy 2024-05-29 14:08:07 +00:00
Hans-Christoph Steiner
18f3acc32e split out options from read_config()
There is no longer any reason for these to be intertwined.

This deliberately avoids touching some files as much as possible because
they are super tangled and due to be replaced.  Those files are:

* fdroidserver/build.py
* fdroidserver/update.py

# Conflicts:
#	tests/testcommon.py

# Conflicts:
#	fdroidserver/btlog.py
#	fdroidserver/import_subcommand.py
2024-05-08 16:26:46 +02:00
Hans-Christoph Steiner
1e5699e90c remove all references to optparse (deprecated since Python 3.2) 2024-05-08 16:19:27 +02:00
Michael Pöhn
f2118b35a3
🏟️ fix ci 2024-04-23 16:06:10 +02:00
proletarius101
947217549a feat: add servergitmirrors as a dict support 2024-02-14 16:50:39 +00:00
Hans-Christoph Steiner
810387a009 deploy: update_serverwebroots() for testable logic
This moves all of the serverwebroot: logic into a function, and adds tests.
I did this because I ran into issues in the logic in main():

Traceback (most recent call last):
  File "/builds/eighthave/fdroidserver/fdroid", line 22, in <module>
    fdroidserver.__main__.main()
  File "/builds/eighthave/fdroidserver/fdroidserver/__main__.py", line 230, in main
    raise e
  File "/builds/eighthave/fdroidserver/fdroidserver/__main__.py", line 211, in main
    mod.main()
  File "/builds/eighthave/fdroidserver/fdroidserver/deploy.py", line 753, in main
    s = serverwebroot.rstrip('/').split(':')
AttributeError: 'dict' object has no attribute 'rstrip'
2024-01-23 18:49:12 +01:00
Hans-Christoph Steiner
fbf097d390 deploy: update_serverwebroot() works w/o options/config
Since update_serverwebroot() is part of the public API, this function should
work without setting `fdroidserver.deploy.options` or
`fdroidserver.deploy.config`.
2024-01-23 17:48:47 +01:00
Hans-Christoph Steiner
7a656d45e3 config: convert serverwebroot: to list-of-dicts format
This allows for more metadata about the server and deploy mode.
2024-01-22 22:11:49 +01:00
Hans-Christoph Steiner
00aa595f37 deploy: give useful error if rsync is not installed 2023-09-08 10:42:27 +02:00
Hans-Christoph Steiner
7641c30389
add real test of moving files with deploy.update_serverwebroot() 2023-04-24 11:08:42 +02:00
Hans-Christoph Steiner
b92e280eab fix code format for new black rule 2023-03-20 14:47:48 +01:00
Hans-Christoph Steiner
01f7dfd0b3 index-v2.jar is not a valid file, remove references
entry.jar is the signed file, it references index-v2.json.
2022-11-15 13:22:09 +00:00
Hans-Christoph Steiner
2448f070e9 fix tests and docstring error 2022-05-23 15:34:30 +02:00
Hans-Christoph Steiner
707cd7addb
publish index-v1.json and include a gpg signature
This gives a more flexible and direct way for many clients to consume the
index file. #969
2022-02-22 22:58:09 +01:00
Hans-Christoph Steiner
d05ff9db1d
easy changes to black code format in test cases
This does not change areas of code that should be manually reformatted.
2021-06-07 11:53:58 +02:00
Hans-Christoph Steiner
17f6a778ba deploy: move server.py to deploy.py and remove aliases
closes #832
2020-10-21 11:38:49 +02:00