mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 10:34:05 +00:00 
			
		
		
		
	britney: Permit comments in Package-List field of constraints
python-apt's "TagFile" seems to cut the field short if it meets a comment. Therefore allow comments in the actual field value to avoid this nasty behaviour. Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
		
							parent
							
								
									e50037a7da
								
							
						
					
					
						commit
						3c0dcf0de3
					
				@ -603,7 +603,7 @@ class Britney(object):
 | 
			
		||||
 | 
			
		||||
            self.log(" - constraint %s" % pkg_name, type='I')
 | 
			
		||||
 | 
			
		||||
            pkg_list = [x.strip() for x in mandatory_field('Package-List').split("\n") if x.strip() != '']
 | 
			
		||||
            pkg_list = [x.strip() for x in mandatory_field('Package-List').split("\n") if x.strip() != '' and not x.strip().startswith("#")]
 | 
			
		||||
            src_data = [faux_version,
 | 
			
		||||
                        faux_section,
 | 
			
		||||
                        [],
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user