mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 14:30:30 +03:00 
			
		
		
		
	Allow rm to act on multiple paths (issue #50)
This commit is contained in:
		
							parent
							
								
									81d20c7637
								
							
						
					
					
						commit
						538d6d45fc
					
				
					 2 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -704,6 +704,8 @@ the root of the directory structure checked out from the source
 | 
			
		|||
respository - not necessarily the directory that contains
 | 
			
		||||
AndroidManifest.xml.
 | 
			
		||||
 | 
			
		||||
Multiple files can be specified by separating they with ';'.
 | 
			
		||||
 | 
			
		||||
@item antcommand=xxx
 | 
			
		||||
Specify an alternate ant command (target) instead of the default
 | 
			
		||||
'release'.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1753,9 +1753,10 @@ def prepare_source(vcs, app, build, build_dir, extlib_dir, sdk_path, ndk_path, j
 | 
			
		|||
 | 
			
		||||
    # Delete unwanted file...
 | 
			
		||||
    if 'rm' in build:
 | 
			
		||||
        dest = os.path.join(build_dir, build['rm'])
 | 
			
		||||
        if os.path.exists(dest):
 | 
			
		||||
            os.remove(dest)
 | 
			
		||||
        for part in build['rm'].split(';'):
 | 
			
		||||
            dest = os.path.join(build_dir, part)
 | 
			
		||||
            if os.path.exists(dest):
 | 
			
		||||
                os.remove(dest)
 | 
			
		||||
 | 
			
		||||
    # Fix apostrophes translation files if necessary...
 | 
			
		||||
    if build.get('fixapos', 'no') == 'yes':
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue