#954072 fdroidserver: --server option not working

#954072#5
Date:
2020-03-16 09:54:33 UTC
From:
To:
Hello,

Running "fdroid build" with the "--server" option fails with this error:
  File "/usr/lib/python3/dist-packages/fdroidserver/build.py", line 1078, in
main
    options.onserver, options.refresh):
  File "/usr/lib/python3/dist-packages/fdroidserver/build.py", line 849, in
trybuild
    build_server(app, build, vcs, build_dir, output_dir, log_dir, force)
  File "/usr/lib/python3/dist-packages/fdroidserver/build.py", line 135, in
build_server
    ftp.put(os.path.join(serverpath, '..', 'fdroid'), 'fdroid')
  File "/usr/lib/python3/dist-packages/paramiko/sftp_client.py", line 757, in
put
    file_size = os.stat(localpath).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-
packages/fdroidserver/../fdroid'

It is because it tries to copy fdroidserver to the build VM, but when using the
Debian package, the fdroid executable is not where expected.
There is some discussion about this upstream:
https://gitlab.com/fdroid/fdroidserver/-/issues/415

Regards,

#954072#10
Date:
2023-02-17 09:25:35 UTC
From:
To:
Upstream only uses and maintains the `fdroid build` command out of git.  If
someone wants change that, they should contribute upstream.