@@include@@variables.include APT_GET="`command -v apt-get 2> /dev/null`" APT_CONFIG="`command -v apt-config 2> /dev/null`" SOURCES_PREAMBLE="### THIS FILE IS AUTOMATICALLY CONFIGURED ### # You may comment out this entry, but any other modifications may be lost.\n" # Set variables for the locations of the apt trusted keyrings. find_apt_trusted() { eval $("$APT_CONFIG" shell APT_TRUSTEDDIR 'Dir::Etc::trustedparts/d') } # Install the repository/package signing keys. # (see also: https://www.google.com/linuxrepositories/) install_key() { find_apt_trusted # ASCII-armored keyrings are only supported in apt 1.4 and later, but we must # continue supporting Trusty and Xenial which have older versions of apt, so # the keyring is installed as a binary blob. base64 is used to decode the # ASCII keyring, which should always be available since it comes from the # coreutils. (base64 -d > "$APT_TRUSTEDDIR/@@PACKAGE@@.gpg") <