Commit Graph
9270 Commits
Author SHA1 Message Date
Hans-Christoph Steiner 5bed7b48e6 checkupdates does not need common.config 2025-11-26 11:49:49 +00:00
Hans-Christoph Steiner be27b58114 checkupdates: standardize on "from fdroidserver import X"
This is the code style used in most of the rest of the submodules.
2025-11-26 11:49:49 +00:00
Hans-Christoph Steiner 5660a06740 checkupdates: remove status JSON, it is no longer used 2025-11-26 11:49:49 +00:00
Hans-Christoph Steiner 0b4764504d checkupdates: fix pylint invalid-name use-dict-literal no-else-return/raise 2025-11-26 11:49:49 +00:00
Michael Pöhn 729a971fdd Merge branch 'log-commit-id' into 'master'
log actual commit ID from git Repo: and srclibs:

See merge request fdroid/fdroidserver!1733
2025-11-26 11:34:19 +00:00
Hans-Christoph Steiner 67b03c5d4c log actual commit ID from git Repo: and srclibs: 2025-11-26 11:30:04 +00:00
linsui 48df58854c Merge branch 'prepare-to-enforce-lint' into 'master'
lint: maintenance towards reenabling the `fdroid lint` CI job in _fdroiddata_

See merge request fdroid/fdroidserver!1735
2025-11-25 14:09:24 +00:00
Hans-Christoph Steiner 062e7ca4f2 lint: isolate "options" var to only main() and lint_metadata()
This means lint no longer uses fdroidserver.common.options at all, and the
"options" are is isolated to only fdroidserver/lint.py.  Running rewritemeta
separately also allows for line numbers in all the check functions that
return a generator.
2025-11-24 12:32:04 +01:00
Hans-Christoph Steiner 185c4ff38a lint: mediawiki-style links are no longer supported
fdroidserver!828
2025-11-24 12:32:04 +01:00
Hans-Christoph Steiner b43faa8c75 lint: port to common.config, remove local config var 2025-11-24 12:31:28 +01:00
Hans-Christoph Steiner b90fd68794 lint: remove "Invalid bulleted list", there is no list syntax 2025-11-24 12:01:48 +01:00
Hans-Christoph Steiner 379e293320 lint; fix double execution of tests 2025-11-24 12:01:48 +01:00
Hans-Christoph Steiner 9abb716e48 lint: check git/srclib Repo URLs for proper format 2025-11-24 12:01:48 +01:00
Hans-Christoph Steiner ef72c886bc lint: leave leading/trailing space enforcement to yamllint 2025-11-24 12:01:48 +01:00
Hans-Christoph Steiner 09a229f662 lint: master or main is actually preferred in URLs over HEAD 2025-11-24 12:01:48 +01:00
Hans-Christoph Steiner 048d7d8386 Merge branch 'fix-test-deploy-to-s3-with-rclone-ci-job' into 'master'
Change debian:bookworm-slim instance to use debian:trixie-slim for rclone_tests

See merge request fdroid/fdroidserver!1731
2025-11-21 19:03:37 +00:00
thefuture f274ff38e7 change debian instance to use debian:trixie-slim 2025-11-21 15:43:32 +03:00
Hans-Christoph Steiner 0a0235e32c Merge branch 'gradle' into 'master'
link gradlew-fdroid to gradle

See merge request fdroid/fdroidserver!1729
2025-11-18 16:51:19 +00:00
linsui dc09482d8e link gradlew-fdroid to gradle 2025-11-19 00:11:29 +08:00
Hans-Christoph Steiner 3c7b3690f6 Merge branch 'gradleclean' into 'master'
Remove /opt/gradle related code

See merge request fdroid/fdroidserver!1725
2025-11-18 09:31:39 +00:00
linsui b47ceb648b Remove /opt/gradle related code 2025-11-18 00:32:08 +08:00
linsui 47edd38d3d Bump RELEASE_COMMIT_ID 2025-11-17 23:18:43 +08:00
linsui d172d99180 Merge branch 'patch-1' into 'master'
Update BTC & LTC regex for Taproot and stricter rules

See merge request fdroid/fdroidserver!1723
2025-11-17 09:44:54 +00:00
Ygsk Lv.212 a211a047b5 Update BTC & LTC regex for Taproot and stricter rules 2025-11-17 09:44:54 +00:00
Hans-Christoph Steiner c8e974113c Merge branch 'ltc' into 'master'
Update litecoin address regex

See merge request fdroid/fdroidserver!1722
2025-11-16 20:07:56 +00:00
linsui 62459ba320 Bump RELEASE_COMMIT_ID 2025-11-17 02:33:38 +08:00
linsui 91b5c85a7c Update litecoin address regex 2025-11-17 02:33:07 +08:00
Michael Pöhn 0048cb19d3 Merge branch 'set-up-config-ndk_paths' into 'master'
set up config['ndk_paths'] on demand by reading source.properties

See merge request fdroid/fdroidserver!1717
2025-11-12 10:38:57 +00:00
Hans-Christoph Steiner b1b30d13a4 set up config['ndk_paths'] on demand by reading source.properties
ndk_paths is set up right after installing the NDK and right before
ndk_paths is used in Build.ndk_path().

A proper NDK install always has a _source.properties_ which declares
the revision and release strings. That is used as the source of
revision and release.  This only reads from the local filesystem, and
reads the official source of version info (_source.properties_),
thereby avoiding any potential network calls that sdkmanager might
do. This implementation was inspired by @uniqx's:

https://gitlab.com/uniqx/fdroidserver/-/commit/ed931d47d728291ba6b428e0fcf7b53e52476d98#27b997d583cd1c0a05b2213437e0d9fe6536bfe3
2025-11-11 15:56:01 +01:00
Hans-Christoph Steiner 40f411d417 Merge branch 'buildbot-subcommands-fetch_repo-fetch_srclibs' into 'master'
subcommands: fetch_repo and fetch_srclibs

See merge request fdroid/fdroidserver!1716
2025-11-10 18:26:53 +00:00
Michael Pöhn 5e87f85cf7 🥍 add fetch_srclibs subcommand 2025-11-05 11:20:44 +01:00
Michael Pöhn 0075f044f7 🌅 add fetch_repo subcommand (based on fetchsrclibs plugin)
We've been using fetchsrclibs plugin for downloading source-code for
apps and srclibs. This change copies to plugin script into fdroidserver
as a subcommand. It also renames it from fetchsrclibs to fetch_repo
because it's fetching the git repo in Repo:
2025-11-05 11:20:44 +01:00
Michael Pöhn 9de92dc215 💂 push: owner fix 2025-11-05 11:20:41 +01:00
Michael Pöhn e4f9c8c58c Merge branch 'buildbot-subcommands-pull_verify' into 'master'
new subcommand: _pull_verify_ to only pull the binary package

See merge request fdroid/fdroidserver!1715
2025-11-04 11:48:03 +00:00
Hans-Christoph Steiner 0c50caee7f new subcommand pull_verify to only pull the binary package 2025-11-04 11:47:02 +00:00
Michael Pöhn 43c23c84eb Merge branch 'buildbot-subcommands-execute_sudo' into 'master'
🦹 add execute_sudo subcommand

See merge request fdroid/fdroidserver!1714
2025-11-04 11:31:08 +00:00
Michael Pöhn 1c4fe22c5b 🦹 add execute_sudo subcommand
This subcommand takes following actions:

* executes sudo commands from metadata
* removes sudo from your system
* locks root account

Only run in a vm/container!!!
2025-10-31 14:45:30 +01:00
Hans-Christoph Steiner f79801d65e Merge branch 'up-cpu-memory-cli-args' into 'master'
`fdroid up --cpus --memory` CLI args

See merge request fdroid/fdroidserver!1713
2025-10-29 20:38:47 +00:00
Hans-Christoph Steiner 950efbbb45 safety catch for --cpus so it isn't higher than actual CPUs 2025-10-29 21:22:35 +01:00
Hans-Christoph Steiner 8421d61369 get_virt_memory_opt: support str values like "16GB" 2025-10-29 21:22:35 +01:00
Michael Pöhn 2386bcc64f 🖼 set cpus and memory from CLI options 2025-10-29 21:22:35 +01:00
Hans-Christoph Steiner a9f4467661 Merge branch 'buildbot-subcommands-prepare_source-build_local_run-make_src_tar_gz' into 'master'
more subcommands: prepare_source, build_local_run, install_ndk, make_source_tarball

See merge request fdroid/fdroidserver!1712
2025-10-29 20:19:02 +00:00
Hans-Christoph Steiner f64386406c new subcommand: make_source_tarball 2025-10-29 21:06:43 +01:00
Michael Pöhn cd3ca7dc57 🪗 get auto NDK installs working in vm builds 2025-10-29 21:06:43 +01:00
Michael Pöhn 751df0275e 🧭 started splitting out build_local from build.py
This copies build_local() from build.py into newly created (hidden)
subcommands: `prepare_source` and `build_local_run`. It also
breaks up the long body of the build_local function into smaller
functions.
2025-10-29 21:06:42 +01:00
Michael Pöhn 89dcb1aa1f Merge branch 'buildbot-subcommands-schedule-verify' into 'master'
new subcommand "schedule_verify" to generate events for apps to verify

See merge request fdroid/fdroidserver!1710
2025-10-23 15:26:41 +00:00
Hans-Christoph Steiner 4f1b50f7a6 switch test_signatures.py to mkdtemp to fix mystery
I have no idea what is causing this to fail, but the mkdtemp pattern used
in other test files seems to fix it.

https://gitlab.com/fdroid/fdroidserver/-/jobs/11776468083
======================================================================
ERROR: test_main (tests.test_signatures.SignaturesTest.test_main)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builds/fdroid/fdroidserver/tests/test_signatures.py", line 28, in test_main
    with TemporaryDirectory() as tmpdir, TmpCwd(tmpdir):
                                         ^^^^^^^^^^^^^^
  File "/builds/fdroid/fdroidserver/tests/shared_test_code.py", line 44, in __enter__
    self.orig_cwd = os.getcwd()
                    ^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
----------------------------------------------------------------------
2025-10-23 12:03:52 +02:00
Hans-Christoph Steiner 2fbd6f1a19 new subcommand "schedule_verify" to generate events for apps to verify 2025-10-23 12:03:52 +02:00
Hans-Christoph Steiner 80dfbad85b Merge branch 'fix-dont-fetch-source-on-push.py' into 'master'
🪳 prevent push.py from fetching source code

See merge request fdroid/fdroidserver!1711
2025-10-23 09:49:43 +00:00
Michael Pöhn 14e7cc007d 🪳 prevent push.py from fetching source code 2025-10-23 10:54:47 +02:00