mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 10:34:05 +00:00 
			
		
		
		
	Render Launchpad links for binary-only entries correctly.
This commit is contained in:
		
							parent
							
								
									052feb339e
								
							
						
					
					
						commit
						2f1c0d5b1d
					
				@ -1409,7 +1409,7 @@ class Britney(object):
 | 
			
		||||
                    base = 'testing'
 | 
			
		||||
                else:
 | 
			
		||||
                    base = 'stable'
 | 
			
		||||
                text = "Not yet built on <a href=\"https://launchpad.net/ubuntu/+source/%s/%s\" target=\"_blank\">%s</a> (relative to testing)" % (urllib.quote(src), urllib.quote(source_u[VERSION]), arch)
 | 
			
		||||
                text = "Not yet built on <a href=\"https://launchpad.net/ubuntu/+source/%s/%s\" target=\"_blank\">%s</a> (relative to testing)" % (urllib.quote(src.split("/")[0]), urllib.quote(source_u[VERSION]), arch)
 | 
			
		||||
 | 
			
		||||
                if arch in self.options.outofsync_arches.split():
 | 
			
		||||
                    text = text + " (but %s isn't keeping up, so never mind)" % (arch)
 | 
			
		||||
@ -1457,10 +1457,10 @@ class Britney(object):
 | 
			
		||||
                    if oodtxt: oodtxt = oodtxt + "; "
 | 
			
		||||
                    oodtxt = oodtxt + "%s (from <a href=\"https://launchpad.net/ubuntu/+source/" \
 | 
			
		||||
                        "%s/%s\" target=\"_blank\">%s</a>)" % \
 | 
			
		||||
                        (", ".join(sorted(oodbins[v])), urllib.quote(src), urllib.quote(v), v)
 | 
			
		||||
                        (", ".join(sorted(oodbins[v])), urllib.quote(src.split("/")[0]), urllib.quote(v), v)
 | 
			
		||||
                text = "out of date on <a href=\"https://launchpad.net/ubuntu/+source/" \
 | 
			
		||||
                    "%s/%s\" target=\"_blank\">%s</a>: %s" % \
 | 
			
		||||
                    (urllib.quote(src), urllib.quote(source_u[VERSION]), arch, oodtxt)
 | 
			
		||||
                    (urllib.quote(src.split("/")[0]), urllib.quote(source_u[VERSION]), arch, oodtxt)
 | 
			
		||||
 | 
			
		||||
                if arch in self.options.outofsync_arches.split():
 | 
			
		||||
                    text = text + " (but %s isn't keeping up, so nevermind)" % (arch)
 | 
			
		||||
 | 
			
		||||
@ -121,7 +121,7 @@ class Excuse(object):
 | 
			
		||||
 | 
			
		||||
    def html(self):
 | 
			
		||||
        """Render the excuse in HTML"""
 | 
			
		||||
        lp_pkg = "https://launchpad.net/ubuntu/+source/%s" % self.name
 | 
			
		||||
        lp_pkg = "https://launchpad.net/ubuntu/+source/%s" % self.name.split("/")[0]
 | 
			
		||||
        if self.ver[0] == "-":
 | 
			
		||||
            lp_old = self.ver[0]
 | 
			
		||||
        else:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user