[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] apt: use universe section for Ubuntu

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:43:46 JST 2012


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

  New Revision: 91ccdab02f3c5e30dc0abc003f1b435c07fbd128
  https://github.com/mroonga/mroonga/commit/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
-------------- next part --------------
HTML����������������������������...
Download 



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