mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 02:24:24 +00:00 
			
		
		
		
	Simplify (and fix) logic for assigning section "faux" to fake sources
This commit is contained in:
		
							parent
							
								
									a088234d3c
								
							
						
					
					
						commit
						db6ccbf438
					
				@ -516,7 +516,7 @@ class Britney:
 | 
			
		||||
                sources[distribution][dpkg[SOURCE]][BINARIES].append(pkg + "/" + arch)
 | 
			
		||||
            # if the source package doesn't exist, create a fake one
 | 
			
		||||
            else:
 | 
			
		||||
                sources[distribution][dpkg[SOURCE]] = [dpkg[SOURCEVER], None, [pkg + "/" + arch], None, True]
 | 
			
		||||
                sources[distribution][dpkg[SOURCE]] = [dpkg[SOURCEVER], 'faux', [pkg + "/" + arch], None, True]
 | 
			
		||||
 | 
			
		||||
            # register virtual packages and real packages that provide them
 | 
			
		||||
            if dpkg[PROVIDES]:
 | 
			
		||||
@ -854,7 +854,7 @@ class Britney:
 | 
			
		||||
        for src_name in sorted(sources):
 | 
			
		||||
            src = sources[src_name]
 | 
			
		||||
            srcv = src[VERSION]
 | 
			
		||||
            srcsec = src[FAKESRC] and 'faux' or src[SECTION] or 'unknown'
 | 
			
		||||
            srcsec = src[SECTION] or 'unknown'
 | 
			
		||||
            f.write('%s %s source %s\n' % (src_name, srcv, srcsec))
 | 
			
		||||
 | 
			
		||||
        f.close()
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user