mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	update: warn with --nosign if keystore/repo_pubkey are not present
This should also make it easier to use index.make() as an API function since this changes whether the instance var exists before checking the value.
This commit is contained in:
		
							parent
							
								
									303c6aa247
								
							
						
					
					
						commit
						197ca7e36f
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -57,7 +57,10 @@ def make(apps, apks, repodir, archive):
 | 
			
		|||
    """
 | 
			
		||||
    from fdroidserver.update import METADATA_VERSION
 | 
			
		||||
 | 
			
		||||
    if not common.options.nosign:
 | 
			
		||||
    if hasattr(common.options, 'nosign') and common.options.nosign:
 | 
			
		||||
        if 'keystore' not in common.config and 'repo_pubkey' not in common.config:
 | 
			
		||||
            raise FDroidException(_('"repo_pubkey" must be present in config.py when using --nosign!'))
 | 
			
		||||
    else:
 | 
			
		||||
        common.assert_config_keystore(common.config)
 | 
			
		||||
 | 
			
		||||
    # Historically the index has been sorted by App Name, so we enforce this ordering here
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue