Navigation Menu

Skip to content

Commit

Permalink
apt: use universe section for Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 29, 2012
1 parent 574d748 commit 91ccdab
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/apt/build-deb.sh
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 91ccdab

Please sign in to comment.