mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 14:30:30 +03:00 
			
		
		
		
	split out options from read_config()
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
This commit is contained in:
		
							parent
							
								
									685efa23d4
								
							
						
					
					
						commit
						18f3acc32e
					
				
					 53 changed files with 317 additions and 265 deletions
				
			
		| 
						 | 
				
			
			@ -56,9 +56,9 @@ def _build_yaml_representer(dumper, data):
 | 
			
		|||
parser = ArgumentParser()
 | 
			
		||||
fdroidserver.common.setup_global_opts(parser)
 | 
			
		||||
fdroidserver.metadata.add_metadata_arguments(parser)
 | 
			
		||||
options = parser.parse_args()
 | 
			
		||||
options = fdroidserver.common.parse_args(parser)
 | 
			
		||||
fdroidserver.metadata.warnings_action = options.W
 | 
			
		||||
fdroidserver.common.read_config(None)
 | 
			
		||||
fdroidserver.common.read_config()
 | 
			
		||||
 | 
			
		||||
if not os.path.isdir('metadata'):
 | 
			
		||||
    print("This script must be run in an F-Droid data folder with a 'metadata' subdir!")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue