mirror of
				https://git.launchpad.net/livecd-rootfs
				synced 2025-11-04 02:44:07 +00:00 
			
		
		
		
	softwareproperties.ppa.get_ppa_info_from_lp to match the new calling convention in software-properties 0.93.
		
			
				
	
	
		
			18 lines
		
	
	
		
			451 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			451 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
#! /usr/bin/python3
 | 
						|
 | 
						|
from __future__ import print_function
 | 
						|
 | 
						|
from optparse import OptionParser
 | 
						|
 | 
						|
from softwareproperties import ppa
 | 
						|
 | 
						|
 | 
						|
parser = OptionParser(usage="%prog OWNER/NAME")
 | 
						|
_, args = parser.parse_args()
 | 
						|
if not args:
 | 
						|
    parser.error("must provide a PPA owner/name")
 | 
						|
owner_name, ppa_name = args[0].split("/", 1)
 | 
						|
owner_name = "~%s" % owner_name
 | 
						|
ppa_info = ppa.get_ppa_info_from_lp(owner_name, ppa_name)
 | 
						|
print(ppa_info["signing_key_fingerprint"])
 |