Navigation Menu

Skip to content

Commit

Permalink
apt: use apt-get instead of aptitude
Browse files Browse the repository at this point in the history
Because aptitude on sid is broken. :<
  • Loading branch information
kou committed Apr 29, 2012
1 parent 79958f8 commit e8f0b2a
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions packages/apt/build-deb.sh
Expand Up @@ -22,17 +22,13 @@ run()
grep '^deb ' /etc/apt/sources.list | \
sed -e 's/^deb /deb-src /' > /etc/apt/sources.list.d/base-source.list

if [ ! -x /usr/bin/aptitude ]; then
run apt-get update
run apt-get install -y aptitude
fi
run aptitude update -V -D
run aptitude install -V -D -y --allow-untrusted groonga-keyring
run aptitude safe-upgrade -V -D -y
run apt-get update -V
run apt-get install -V -y --allow-unauthenticated groonga-keyring
run apt-get upgrade -V -y

security_list=/etc/apt/sources.list.d/security.list
if [ ! -d "${security_list}" ]; then
run aptitude install -V -D -y lsb-release
run apt-get install -V -y lsb-release

distribution=$(lsb_release --id --short)
code_name=$(lsb_release --codename --short)
Expand All @@ -55,13 +51,13 @@ EOF
;;
esac

run aptitude update -V -D
run aptitude safe-upgrade -V -D -y
run apt-get update -V
run apt-get upgrade -V -y
fi

run aptitude install -V -D -y devscripts ${DEPENDED_PACKAGES}
run aptitude build-dep -V -D -y ${mysql_server_package}
run aptitude clean
run apt-get install -V -y devscripts ${DEPENDED_PACKAGES}
run apt-get build-dep -V -y ${mysql_server_package}
run apt-get clean

if ! id $USER_NAME >/dev/null 2>&1; then
run useradd -m $USER_NAME
Expand Down

0 comments on commit e8f0b2a

Please sign in to comment.