Navigation Menu

Skip to content

Commit

Permalink
[apt] get groonga apt repository key only if it doesn't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 29, 2011
1 parent 3290f8e commit 3e291d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apt/build-deb.sh
Expand Up @@ -22,7 +22,10 @@ run()
grep '^deb ' /etc/apt/sources.list | \
sed -e 's/^deb /deb-src /' > /etc/apt/sources.list.d/base-source.list

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 1C837F31
groonga_apt_key=1C837F31
if ! apt-key list | grep -q ${groonga_apt_key}; then
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com ${groonga_apt_key}
fi

if [ ! -x /usr/bin/aptitude ]; then
run apt-get update
Expand Down

0 comments on commit 3e291d3

Please sign in to comment.