mirror of
				https://git.launchpad.net/ubuntu-dev-tools
				synced 2025-11-03 23:44:19 +00:00 
			
		
		
		
	Reverted: r876: Append a1 to version number in pre-releases
This commit is contained in:
		
							parent
							
								
									c4de897e2a
								
							
						
					
					
						commit
						9ba4809eed
					
				
							
								
								
									
										6
									
								
								setup.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										6
									
								
								setup.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							@ -8,12 +8,10 @@ import re
 | 
			
		||||
# look/set what version we have
 | 
			
		||||
changelog = "debian/changelog"
 | 
			
		||||
if os.path.exists(changelog):
 | 
			
		||||
    head = open(changelog).readline()
 | 
			
		||||
    match = re.compile(r'.*\((.+)\)\s+(\S+);\s+.*').match(head)
 | 
			
		||||
    head=open(changelog).readline()
 | 
			
		||||
    match = re.compile(".*\((.*)\).*").match(head)
 | 
			
		||||
    if match:
 | 
			
		||||
        version = match.group(1)
 | 
			
		||||
        if match.group(2) == 'UNRELEASED':
 | 
			
		||||
            version += 'a1'
 | 
			
		||||
 | 
			
		||||
scripts = ['404main',
 | 
			
		||||
           'backportpackage',
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user