mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 11:00:10 +01:00
remove setting git name/email for binary transparency logs
The machine running the steps should include the git config, so that it is specific to that machines.
This commit is contained in:
parent
6f71465ec1
commit
896c6496b4
@ -28,7 +28,6 @@ import re
|
|||||||
import shutil
|
import shutil
|
||||||
import glob
|
import glob
|
||||||
import json
|
import json
|
||||||
import platform
|
|
||||||
import stat
|
import stat
|
||||||
import subprocess
|
import subprocess
|
||||||
import time
|
import time
|
||||||
@ -2373,16 +2372,19 @@ def make_binary_transparency_log(repodirs, btrepo='binary_transparency',
|
|||||||
os.mkdir(btrepo)
|
os.mkdir(btrepo)
|
||||||
gitrepo = git.Repo.init(btrepo)
|
gitrepo = git.Repo.init(btrepo)
|
||||||
|
|
||||||
gitconfig = gitrepo.config_writer()
|
|
||||||
gitconfig.set_value('user', 'name', commit_title)
|
|
||||||
gitconfig.set_value('user', 'email', 'fdroid@' + platform.node())
|
|
||||||
|
|
||||||
if not url:
|
if not url:
|
||||||
url = config['repo_url'].rstrip('/')
|
url = config['repo_url'].rstrip('/')
|
||||||
with open(os.path.join(btrepo, 'README.md'), 'w') as fp:
|
with open(os.path.join(btrepo, 'README.md'), 'w') as fp:
|
||||||
fp.write("""
|
fp.write("""
|
||||||
# Binary Transparency Log for %s
|
# Binary Transparency Log for %s
|
||||||
|
|
||||||
|
This is a log of the signed app index metadata. This is stored in a
|
||||||
|
git repo, which serves as an imperfect append-only storage mechanism.
|
||||||
|
People can then check that any file that they received from that
|
||||||
|
F-Droid repository was a publicly released file.
|
||||||
|
|
||||||
|
For more info on this idea:
|
||||||
|
* https://wiki.mozilla.org/Security/Binary_Transparency
|
||||||
""" % url[:url.rindex('/')]) # strip '/repo'
|
""" % url[:url.rindex('/')]) # strip '/repo'
|
||||||
gitrepo.index.add(['README.md', ])
|
gitrepo.index.add(['README.md', ])
|
||||||
gitrepo.index.commit('add README')
|
gitrepo.index.commit('add README')
|
||||||
|
Loading…
Reference in New Issue
Block a user