mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	Merge branch 'walk-straight' into 'master'
Correct traversing cibase See merge request fdroid/fdroidserver!1519
This commit is contained in:
		
						commit
						adf9dcb93e
					
				
					 1 changed files with 5 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -438,17 +438,12 @@ Last updated: {date}'''.format(repo_git_base=repo_git_base,
 | 
			
		|||
        )
 | 
			
		||||
 | 
			
		||||
        for root, dirs, files in os.walk(cibase):
 | 
			
		||||
            if root.startswith(repo_basedir):
 | 
			
		||||
                logging.error(
 | 
			
		||||
                    _('Broken dirs.remove(d): {root} is part of {repo_basedir} and should not be scanned').format(
 | 
			
		||||
                        root=root,
 | 
			
		||||
                        repo_basedir=repo_basedir
 | 
			
		||||
                    )
 | 
			
		||||
                )
 | 
			
		||||
                continue
 | 
			
		||||
            for d in dirs:
 | 
			
		||||
                if d == '.git' or d == '.gradle' or (d == 'fdroid' and root == cibase):
 | 
			
		||||
            for d in ('.git', '.gradle'):
 | 
			
		||||
                if d in dirs:
 | 
			
		||||
                    dirs.remove(d)
 | 
			
		||||
            if root == cibase and 'fdroid' in dirs:
 | 
			
		||||
                dirs.remove('fdroid')
 | 
			
		||||
 | 
			
		||||
            for f in files:
 | 
			
		||||
                if f.endswith('-debug.apk'):
 | 
			
		||||
                    apkfilename = os.path.join(root, f)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue