Jochen Sprickerhof
4d0a21f336
Use vercodes in read_metadata interface
...
read_metadata is only called in read_app_args with an argument. As
vercodes is already there, drop the duplicate call.
2024-10-06 10:25:19 +02:00
Jochen Sprickerhof
8ab1d53318
Read only metadata of apps given on the command line
2024-10-06 10:25:19 +02:00
linsui
2ceec6b9d6
scanner: catalog: dependency declaration can be declared as a simple string
2024-09-27 14:28:55 +00:00
g0t mi1k
5f7203ddf2
Only check for ipfs_cid when doing fdroid update
2024-09-25 11:44:05 +01:00
linsui
eff0ef48f4
scanner: support libs.versions.toml
2024-09-23 16:35:27 +08:00
Hans-Christoph Steiner
0d5c7516f2
throw error when CLI appid args end with a : but no Version Code
...
This is already the behavior in read_app_args(), but wasn't implemented in
read_pkg_args() yet.
2024-09-23 08:21:21 +00:00
Leo Heitmann Ruiz
0cee694c43
Remove all mentions of Flattr
2024-09-23 07:59:08 +00:00
Hans-Christoph Steiner
043492277e
scanner: always use built-in ruleset when running tests
...
The SUSS rule sets are changing all the time, but the test cases are not.
So this makes the test cases just use the built-in ruleset so the test
cases don't randomly break.
2024-09-21 17:20:11 +02:00
linsui
afc31e115e
Show \r when diffing reproducible apk
2024-09-19 20:19:44 +08:00
Licaon_Kter
02f0052806
scanner - jcenter is gone
2024-09-17 15:58:02 +00:00
Hans-Christoph Steiner
fe3d929f67
deploy: lists for command lines to handle escaping
...
fdroidserver uses lists of strings to handle the escaping command line
arguments, this converts the rclone code to that pattern.
2024-09-17 10:16:57 +00:00
Hans-Christoph Steiner
5126a58af8
deploy: rclone_config always as list to avoid code duplication
2024-09-17 10:16:57 +00:00
linsui
8648954f19
import_subcommand.py: misc fixes and updates
2024-09-16 19:48:02 +08:00
linsui
faac9b38c8
import_subcommand.py: move functions from common.py
...
These functions are only used in this file
2024-09-12 22:14:28 +08:00
linsui
5da4e670dd
import_subcommand.py: format
2024-09-12 22:12:06 +08:00
Hans-Christoph Steiner
492d4a5619
fix typo in translatable string: s,itmes,items,g
2024-09-10 17:00:54 +02:00
Hans-Christoph Steiner
fe1c6b5149
run tests/refresh-SUSS_DEFAULT.py
2024-09-10 11:11:34 +02:00
SilentGhost
8e89cf511d
Correct traversing cibase
...
Partly revert d9aab228 and fix bug introduced in 548f73d9 :
modifying list that is being iterated over
2024-09-06 15:05:36 +02:00
linsui
0ad2820b6f
lint: check config keys
2024-09-05 18:54:46 +08:00
linsui
debac3fd61
lint.py: format
2024-09-05 02:09:55 +08:00
linsui
9b633fb827
scanner: fix build_dir type
2024-09-04 23:58:09 +08:00
linsui
4e829e2f19
scanner: fix npm lock file name
2024-09-04 22:32:48 +08:00
linsui
9482ddfbe3
scanner: support workspace for lock files
2024-09-04 22:32:48 +08:00
linsui
9ccb3b5f0d
Remove comment of google mave repo to workground a bug of ruff
2024-08-31 02:45:14 +08:00
linsui
8884732114
scanner.py: skip format on hex literal
2024-08-31 01:47:26 +08:00
linsui
1d796b734f
scanner: error on dependency files without lock file
2024-08-30 13:46:17 +02:00
linsui
c3644464ff
scanner.py: format
2024-08-30 13:46:17 +02:00
WrenIX
d1d1eb4c53
chore(nightly): improve log messages
2024-08-29 09:58:27 +02:00
WrenIX
d9aab228e2
fix(nightly): workaround for broken os.walk and more logging
2024-08-29 00:51:30 +02:00
g0t mi1k
19aef075b4
Drop --reset-server
2024-08-15 15:44:59 +00:00
Jochen Sprickerhof
0edc732705
Support UpdateCheckName in dirs_with_manifest
...
Closes : #1155
2024-07-25 10:45:27 +02:00
Michael Pöhn
8cf4503a00
🐜 scanner: fix ScannerTool init crash
...
When scanner.py::ScannerTool is instatiated but the calling code was
started by a call to e.g. `build.py` ScannerTool will crash. This change
makes it so that ScannerTool will intializes with a default value
instead of crashing when triging to access a non existen cli argument.
also see https://gitlab.com/fdroid/fdroidserver/-/issues/1212
2024-07-25 06:54:42 +00:00
Jochen Sprickerhof
e1aaa3ce93
Replace unmaintained appdirs by platformdirs
...
8734277956
2024-07-25 08:36:45 +02:00
linsui
d1856bea26
Prune origin before fetch
2024-07-10 15:33:51 +08:00
Hans-Christoph Steiner
fbb6772e37
always use GitLab Pages, not Artifacts, with index-only mode
...
If the repo is too large, then it'll hit the GitLab Pages limit. That is
basically impossible in index-only mode, so it should always use Pages.
2024-07-03 09:18:22 +00:00
Hans-Christoph Steiner
034e83bfca
deploy: complete index-only support for awsbucket:
2024-07-03 09:18:22 +00:00
Michael Pöhn
0fa88c5c20
💇 implement review nits
...
Implement review nits as requested bei @eighthave in
https://gitlab.com/fdroid/fdroidserver/-/merge_requests/1471
2024-06-27 12:28:54 +02:00
Michael Pöhn
3cf3685280
🐐 appeace bandint security warnings
...
In this particular case bandit was complaining about potential path
escape exploits on urlopen. However the urls are safe enough, because
all template parameters inserted into the url are from:
* config.yml - malicious changes to config.yml are possible that's
already a lot bigger issue than this than redirecting github api
calls.
* git tags witch are present in bot the local index-v2.json file (as
versionName) and the remote github API. (git tags don't allow the
string '..')
2024-06-27 12:28:41 +02:00
Michael Pöhn
aca98c1355
🏏 incorporate review feedback
2024-06-27 12:28:29 +02:00
Michael Pöhn
a87284cf80
🚥 deploy: tests for github releases deploy functions
...
Add test cases for github releases function in deploy.py
2024-06-27 12:28:16 +02:00
Michael Pöhn
242490ddc3
🎯 deploy: no releaseChannels on github releases
...
Don't deploy versions of to GitHub releases where a `releaseChannels`
value is set in index-v2.json. (This usually would mean it's a alpha or
beta version.)
2024-06-27 12:28:04 +02:00
Michael Pöhn
c6598f2835
☄️ deploy: github releases - whatsNew text as note
...
Use whatsNew text (if available) as release notes text when deploying to
Github releases. This feature will always use 'en-US' locale texts,
since English is the lingua franka on GitHub. Additionally this change
also adds a config option to preprend a static text to those release
notes.
2024-06-27 12:27:51 +02:00
Michael Pöhn
a079f9d85f
♟️ deploy: add global config github_token
2024-06-27 12:27:39 +02:00
Michael Pöhn
7a6fa7f816
🛄 deploy: separate function for release file lookup
2024-06-27 12:27:27 +02:00
Michael Pöhn
44b0af933d
🎡 add unit tests for github.py
...
add unittests for our github api calls
2024-06-27 12:27:15 +02:00
Michael Pöhn
1b19293ab0
🛰️ deploy: github releases
...
Implemented basic support for using `fdroid delpoy` to upload APKs from
the repo to GitHub releases.
2024-06-27 12:27:01 +02:00
pmmayero
8255dec6b8
fix: jinja 2 CVE
2024-06-12 06:30:27 +00:00
pmmayero
3f59d0908f
fix: subprocess.check_output to produce string and not bytes
2024-06-12 06:30:27 +00:00
proletarius101
845ed3ef47
Add index only deployment mode
2024-06-11 17:45:59 +00:00
paul mayero
7aabfbcbf0
Adding rclone as an option to fdroid deploy
2024-05-29 14:08:07 +00:00