~xubuntu-dev/livecd-rootfs/xubuntu-base

892 by Colin Watson
The EXTRA_ARCHIVES environment variable defined in 2.212 doesn't quite
1
#! /usr/bin/python3
2
3
from __future__ import print_function
4
5
from optparse import OptionParser
6
7
from softwareproperties import ppa
8
9
10
parser = OptionParser(usage="%prog OWNER/NAME")
11
_, args = parser.parse_args()
12
if not args:
13
    parser.error("must provide a PPA owner/name")
956 by Colin Watson
get-ppa-fingerprint: Adjust use of
14
owner_name, ppa_name = args[0].split("/", 1)
15
owner_name = "~%s" % owner_name
892 by Colin Watson
The EXTRA_ARCHIVES environment variable defined in 2.212 doesn't quite
16
ppa_info = ppa.get_ppa_info_from_lp(owner_name, ppa_name)
17
print(ppa_info["signing_key_fingerprint"])