Commit 09330524bb6dfe87bdca6092ddd050c461971b5d

Authored by Antonio Terceiro
1 parent 9ca1e552

debian: make source packages available as well

Showing 1 changed file with 6 additions and 3 deletions   Show diff stats
script/install-dependencies/debian-wheezy.sh
1   -sources_entry='deb http://download.noosfero.org/debian/wheezy-1.1 ./'
  1 +binary_packages='deb http://download.noosfero.org/debian/wheezy-1.1 ./'
2 2  
3   -if ! grep -q "$sources_entry" /etc/apt/sources.list.d/noosfero.list; then
  3 +source_packages=$(echo "$binary_packages" | sed -e 's/^deb/deb-src/')
  4 +
  5 +if ! grep -q "$binary_packages" /etc/apt/sources.list.d/noosfero.list; then
4 6 sudo tee /etc/apt/sources.list.d/noosfero.list <<EOF
5   -$sources_entry
  7 +$binary_packages
  8 +$source_packages
6 9 EOF
7 10  
8 11 sudo apt-key add - <<EOF
... ...