mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 10:34:05 +00:00 
			
		
		
		
	Make reading of pu package lists optional
This allows the consideration of packages from proposed-updates to be
{dis,en}abled depending on whether the configuration file specifies
the path to the packages / sources files.
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
			
			
This commit is contained in:
		
							parent
							
								
									6abb29a8e6
								
							
						
					
					
						commit
						bea99287e5
					
				
							
								
								
									
										10
									
								
								britney.py
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								britney.py
									
									
									
									
									
								
							@ -279,14 +279,18 @@ class Britney:
 | 
			
		||||
        # lib/dpkg.c and rebuilding
 | 
			
		||||
        self.sources = {'testing': self.read_sources(self.options.testing),
 | 
			
		||||
                        'unstable': self.read_sources(self.options.unstable),
 | 
			
		||||
                        'tpu': self.read_sources(self.options.tpu),
 | 
			
		||||
                        'pu': self.read_sources(self.options.pu),}
 | 
			
		||||
                        'tpu': self.read_sources(self.options.tpu),}
 | 
			
		||||
        if 'pu' in self.options:
 | 
			
		||||
            self.sources['pu'] = self.read_sources(self.options.pu)
 | 
			
		||||
        else:
 | 
			
		||||
            self.sources['pu'] = {}
 | 
			
		||||
        self.binaries = {'testing': {}, 'unstable': {}, 'tpu': {}, 'pu': {}}
 | 
			
		||||
        for arch in self.options.architectures:
 | 
			
		||||
            self.binaries['testing'][arch] = self.read_binaries(self.options.testing, "testing", arch)
 | 
			
		||||
            self.binaries['unstable'][arch] = self.read_binaries(self.options.unstable, "unstable", arch)
 | 
			
		||||
            self.binaries['tpu'][arch] = self.read_binaries(self.options.tpu, "tpu", arch)
 | 
			
		||||
            self.binaries['pu'][arch] = self.read_binaries(self.options.pu, "pu", arch)
 | 
			
		||||
            if 'pu' in self.options:
 | 
			
		||||
                self.binaries['pu'][arch] = self.read_binaries(self.options.pu, "pu", arch)
 | 
			
		||||
            # build the testing system
 | 
			
		||||
            self.build_systems(arch)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user