Navigation Menu

Skip to content

Commit

Permalink
support lenny with lenny-backports.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 27, 2010
1 parent 6edc566 commit 8f2dc16
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apt/Makefile.am
@@ -1,7 +1,7 @@
DISTRIBUTIONS = debian ubuntu
CHROOT_BASE = /var/lib/chroot
ARCHITECTURES = amd64
CODES = squeeze unstable lucid maverick
CODES = lenny squeeze unstable lucid maverick

all:

Expand Down
12 changes: 11 additions & 1 deletion apt/build-deb.sh
Expand Up @@ -8,7 +8,7 @@ VERSION=$(cat /tmp/build-version)
DEPENDED_PACKAGES=$(cat /tmp/depended-packages)
BUILD_SCRIPT=/tmp/build-deb-in-chroot.sh

mysql_server_package=mysql-server
mysql_server_package=mysql-server-5.1

run()
{
Expand All @@ -22,6 +22,16 @@ run()
grep '^deb ' /etc/apt/sources.list | \
sed -e 's/^deb /deb-src /' > /etc/apt/sources.list.d/base-source.list

if grep '^5\.0' /etc/debian_version > /dev/null; then
backports_list=/etc/apt/sources.list.d/backports.list
if [ ! -f $backports_list ]; then
cat <<EOF > $backports_list
deb http://backports.debian.org/debian-backports lenny-backports main
deb-src http://backports.debian.org/debian-backports lenny-backports main
EOF
fi
fi

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 1C837F31

if [ ! -x /usr/bin/aptitude ]; then
Expand Down

0 comments on commit 8f2dc16

Please sign in to comment.