[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] [apt] get groonga apt repository key only if it doesn't exist.

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:23:47 JST 2012


Kouhei Sutou	2011-03-29 22:03:00 +0900 (Tue, 29 Mar 2011)

  New Revision: 3e291d3631d1813e81487f63f9cc44432ab3afcc
  https://github.com/mroonga/mroonga/commit/3e291d3631d1813e81487f63f9cc44432ab3afcc

  Log:
    [apt] get groonga apt repository key only if it doesn't exist.

  Modified files:
    apt/build-deb.sh

  Modified: apt/build-deb.sh (+4 -1)
===================================================================
--- apt/build-deb.sh    2011-01-13 14:48:19 +0900 (e693d25)
+++ apt/build-deb.sh    2011-03-29 22:03:00 +0900 (2648be0)
@@ -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
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index