mirror of
				https://git.launchpad.net/ubuntu-dev-tools
				synced 2025-11-04 07:54:03 +00:00 
			
		
		
		
	DebianSourcePackage.lp_spph is annoyingly overloaded; just do the check directly
This commit is contained in:
		
							parent
							
								
									5eb960dd3f
								
							
						
					
					
						commit
						f91f61f8d4
					
				@ -322,7 +322,10 @@ def copy(src_pkg, debian_dist, release, simulate=False, force=False):
 | 
			
		||||
 | 
			
		||||
    # Ensure that the provided Debian version actually exists.
 | 
			
		||||
    try:
 | 
			
		||||
        debian_spph = src_pkg.lp_spph()
 | 
			
		||||
        debian_spph = debian_archive.getPublishedSources(
 | 
			
		||||
            source_name=src_pkg.source,
 | 
			
		||||
            version=src_pkg.version.full_version,
 | 
			
		||||
            exact_match=True)[0]
 | 
			
		||||
    except IndexError:
 | 
			
		||||
        Logger.error('Debian version %s does not exist!', src_pkg.version)
 | 
			
		||||
        sys.exit(1)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user