[Groonga-mysql-commit] mroonga/mroonga [master] apt: use universe section for Ubuntu

Back to archive index

null+****@clear***** null+****@clear*****
2012年 5月 29日 (火) 16:36:05 JST


Kouhei Sutou	2012-05-29 16:36:05 +0900 (Tue, 29 May 2012)

  New Revision: 91ccdab02f3c5e30dc0abc003f1b435c07fbd128

  Log:
    apt: use universe section for Ubuntu

  Modified files:
    packages/apt/build-deb.sh

  Modified: packages/apt/build-deb.sh (+12 -0)
===================================================================
--- packages/apt/build-deb.sh    2012-05-29 16:31:31 +0900 (61241c9)
+++ packages/apt/build-deb.sh    2012-05-29 16:36:05 +0900 (830e50e)
@@ -22,6 +22,8 @@ run()
 grep '^deb ' /etc/apt/sources.list | \
     sed -e 's/^deb /deb-src /' > /etc/apt/sources.list.d/base-source.list
 
+run apt-get update -V
+run apt-get install -V -y lsb-release
 distribution=$(lsb_release --id --short)
 code_name=$(lsb_release --codename --short)
 
@@ -74,6 +76,16 @@ EOF
     run apt-get upgrade -V -y
 fi
 
+universe_list=/etc/apt/sources.list.d/universe.list
+if [ ! -f "$universe_list}" ]; then
+    case ${distribution} in
+	Ubuntu)
+	    sed -e 's/main/universe/' /etc/apt/sources.list > ${universe_list}
+	    run apt-get update -V
+	    ;;
+    esac
+fi
+
 run apt-get install -V -y devscripts ${DEPENDED_PACKAGES}
 run apt-get build-dep -V -y ${mysql_server_package}
 run apt-get clean




Groonga-mysql-commit メーリングリストの案内
Back to archive index