[Groonga-commit] droonga/droonga-engine at 982620a [master] Detect groonga repository correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Sep 29 12:32:45 JST 2014


YUKI Hiroshi	2014-09-29 12:32:45 +0900 (Mon, 29 Sep 2014)

  New Revision: 982620a9dddfa95aaf39326fa11641d8d0c6021f
  https://github.com/droonga/droonga-engine/commit/982620a9dddfa95aaf39326fa11641d8d0c6021f

  Message:
    Detect groonga repository correctly

  Modified files:
    install.sh

  Modified: install.sh (+6 -1)
===================================================================
--- install.sh    2014-09-29 11:37:35 +0900 (a005c1a)
+++ install.sh    2014-09-29 12:32:45 +0900 (4f386ec)
@@ -81,7 +81,10 @@ exist_all_commands() {
 }
 
 exist_yum_repository() {
-  yum repolist | grep --quiet "$1"
+  if ! yum --enablerepo=$1 repolist; then
+    return 1
+  fi
+  yum --enablerepo=$1 repolist | grep --quiet "$1"
 }
 
 exist_user() {
@@ -273,6 +276,8 @@ prepare_environment_in_centos() {
     mv $groonga_repo $backup
     cat $backup | $sed -e "s/enabled=1/enabled=0/" \
       > $groonga_repo
+
+    yum -y --enablerepo=groonga makecache
   fi
 
   if exist_yum_repository groonga; then
-------------- next part --------------
HTML����������������������������...
Download 



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