File: fdroid_extract_repo_pubkey.py

package info (click to toggle)
fdroidserver 2.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,948 kB
  • sloc: python: 34,139; xml: 2,186; sh: 1,362; java: 293; makefile: 54; javascript: 23
file content (22 lines) | stat: -rw-r--r-- 517 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python3
#
# an fdroid plugin print the repo_pubkey from a repo's keystore
#

from argparse import ArgumentParser
from fdroidserver import common, index

fdroid_summary = 'export the keystore in standard PEM format'


def main():
    parser = ArgumentParser()
    common.setup_global_opts(parser)
    common.parse_args(parser)
    common.read_config()
    pubkey, repo_pubkey_fingerprint = index.extract_pubkey()
    print('repo_pubkey = "%s"' % pubkey.decode())


if __name__ == "__main__":
    main()