of <ppa-owner>/<ppa-name> pairs), fetch signing keys for those from Launchpad using python3-software-properties, and add those PPAs when building the live filesystem. This makes it easier for a builder to build an image against an additional PPA (LP: #1334374).ubuntu/trusty
parent
a546c6d7a6
commit
1bbd4778e0
@ -1 +1,2 @@
|
|||||||
live-build usr/share/livecd-rootfs
|
live-build usr/share/livecd-rootfs
|
||||||
|
get-ppa-fingerprint usr/share/livecd-rootfs
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
#! /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("/")
|
||||||
|
ppa_info = ppa.get_ppa_info_from_lp(owner_name, ppa_name)
|
||||||
|
print(ppa_info["signing_key_fingerprint"])
|
Loading…
Reference in new issue