mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	Merge branch 'wasm' into 'master'
scanner: disallow wasm file See merge request fdroid/fdroidserver!1562
This commit is contained in:
		
						commit
						a8e31796d8
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -994,6 +994,13 @@ def scan_source(build_dir, build=metadata.Build(), json_per_build=None):
 | 
			
		|||
                count += handleproblem(
 | 
			
		||||
                    _('Java JAR file'), path_in_build_dir, filepath, json_per_build
 | 
			
		||||
                )
 | 
			
		||||
            elif curfile.endswith('.wasm'):
 | 
			
		||||
                count += handleproblem(
 | 
			
		||||
                    _('WebAssembly binary file'),
 | 
			
		||||
                    path_in_build_dir,
 | 
			
		||||
                    filepath,
 | 
			
		||||
                    json_per_build,
 | 
			
		||||
                )
 | 
			
		||||
 | 
			
		||||
            elif curfile.endswith('.java'):
 | 
			
		||||
                if not os.path.isfile(filepath):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue