mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 14:30:30 +03:00 
			
		
		
		
	There is no longer any reason for these to be intertwined. This deliberately avoids touching some files as much as possible because they are super tangled and due to be replaced. Those files are: * fdroidserver/build.py * fdroidserver/update.py # Conflicts: # tests/testcommon.py # Conflicts: # fdroidserver/btlog.py # fdroidserver/import_subcommand.py
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			517 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			517 B
		
	
	
	
		
			Python
		
	
	
	
	
	
#!/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()
 |