fdroidserver/fdroidserver
Hans-Christoph Steiner 7b52722d12 nightly: replace / from fingerprint in SSH key filename, fixes #423
The SSH key fingerprint is used in the filename.  The base64 used for SSH
key fingerprints includes /.  Not all keys will end up having a / in them.
For those that do, this will crash since the ssh key filename ends up being
non-existent dirs:

$ fdroid nightly
Importing keystore /home/mhoffmann/.android/debug.keystore to /tmp/.cqswaeo8/.keystore.p12...
MAC verified OK
writing RSA key
CRITICAL: Unknown exception found!
Traceback (most recent call last):
  File "/usr/lib/python3.6/shutil.py", line 544, in move
    os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/.cqswaeo8/.privkey' -> '/tmp/.cqswaeo8/debug_keystore_PZtS/4Tzk4dpzKiX9AAf1GrhAVi9U7UE1aYEHr6evKo_id_rsa'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mhoffmann/projects/oss/fdroidserver/fdroid", line 156, in <module>
    main()
  File "/home/mhoffmann/projects/oss/fdroidserver/fdroid", line 132, in main
    mod.main()
  File "/home/mhoffmann/projects/oss/fdroidserver/fdroidserver/nightly.py", line 284, in main
    privkey = _ssh_key_from_debug_keystore()
  File "/home/mhoffmann/projects/oss/fdroidserver/fdroidserver/nightly.py", line 73, in _ssh_key_from_debug_keystore
    shutil.move(privkey, ssh_private_key_file)
  File "/usr/lib/python3.6/shutil.py", line 558, in move
    copy_function(src, real_dst)
  File "/usr/lib/python3.6/shutil.py", line 257, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.6/shutil.py", line 121, in copyfile
    with open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/.cqswaeo8/debug_keystore_PZtS/4Tzk4dpzKiX9AAf1GrhAVi9U7UE1aYEHr6evKo_id_rsa'
2017-12-07 22:39:32 +01:00
..
asynchronousfilereader Add asynchronous filereader, fix python3 lockups 2015-09-20 20:57:53 +02:00
__init__.py fix egg-link and easy_install support for Python3 2017-10-19 23:28:13 +02:00
btlog.py implement gettext localization 2017-09-15 11:39:00 +02:00
build.py makebuildserver: make copy_caches_from_host do rsync like fdroid build 2017-12-06 20:20:17 +01:00
checkupdates.py checkupdates: don't fail when we can't init submodules 2017-12-04 16:30:37 +01:00
common.py common: aapt 24.0.0 (v0.2-2964546) is now required 2017-12-06 12:30:47 +01:00
dscanner.py English source string corrections 2017-09-16 13:19:38 +02:00
exception.py checkupdates: don't fail when we can't init submodules 2017-12-04 16:30:37 +01:00
gpgsign.py implement gettext localization 2017-09-15 11:39:00 +02:00
import.py import: fix bitbucket import 2017-10-04 18:54:47 +02:00
index.py better error message in publish when repo_key is not set 2017-10-17 22:10:39 +02:00
init.py init: fix test for aapt when no aapt has been found 2017-12-06 20:20:17 +01:00
install.py fix string formats that are ambiguous for translators 2017-09-16 13:19:38 +02:00
lint.py lint: greatly expand the list of link shorteners to ban 2017-12-06 09:54:25 +01:00
metadata.py metadata: make help for metadata -W option clearer 2017-12-07 20:28:27 +01:00
mirror.py mirror: fix syntax error on Python 3.4 2017-11-30 14:03:04 +01:00
net.py Support ETag when downloading repository index 2017-05-02 15:37:02 -03:00
nightly.py nightly: replace / from fingerprint in SSH key filename, fixes #423 2017-12-07 22:39:32 +01:00
publish.py add common.sign_apk() for nighly as test for using in publish 2017-12-04 22:52:41 +01:00
readmeta.py all: make newer pycodestyle happy 2016-11-15 20:55:06 +00:00
rewritemeta.py fix string formats that are ambiguous for translators 2017-09-16 13:19:38 +02:00
scanner.py make _ always be the gettext function, nothing else 2017-10-25 23:01:25 +02:00
server.py server: prevent crash when uploading to virustotal 2017-11-29 21:06:02 +01:00
signatures.py HTTP, HTTPS 2017-10-22 06:43:18 +00:00
signindex.py implement gettext localization 2017-09-15 11:39:00 +02:00
stats.py implement gettext localization 2017-09-15 11:39:00 +02:00
tail.py include class like UNIX tail -f for displaying logs 2017-05-23 20:04:08 +02:00
update.py update: do not replace Name/Summary from template unless blank 2017-12-07 22:39:32 +01:00
verify.py fix string formats that are ambiguous for translators 2017-09-16 13:19:38 +02:00
vmtools.py Merge branch 'no_sleep' into 'master' 2017-12-02 12:49:05 +00:00