dist/debian: install GPG key for cross-building
We found on some Debian environment Ubuntu .deb build fails with gpg error because lack of Ubuntu GPG key, so we need to install it before start pbuilder. Same as on Ubuntu, it needs to install Debian GPG key. See scylladb/scylla#3823 Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <20181008110724.18335-1-syuu@scylladb.com>
This commit is contained in:
parent
cd1c79f90f
commit
74fa1a40ca
6
dist/debian/build_deb.sh
vendored
6
dist/debian/build_deb.sh
vendored
@ -96,6 +96,12 @@ if [ ! -f /usr/bin/pystache ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$ID" = "ubuntu" ] && [ ! -f /usr/share/keyrings/debian-archive-keyring.gpg ]; then
|
||||
sudo apt-get install -y debian-archive-keyring
|
||||
fi
|
||||
if [ "$ID" = "debian" ] && [ ! -f /usr/share/keyrings/ubuntu-archive-keyring.gpg ]; then
|
||||
sudo apt-get install -y ubuntu-archive-keyring
|
||||
fi
|
||||
|
||||
if [ -z "$TARGET" ]; then
|
||||
if is_debian_variant; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user