From 09330524bb6dfe87bdca6092ddd050c461971b5d Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 27 Feb 2015 10:50:19 -0300 Subject: [PATCH] debian: make source packages available as well --- script/install-dependencies/debian-wheezy.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/script/install-dependencies/debian-wheezy.sh b/script/install-dependencies/debian-wheezy.sh index 49680d6..c7f8e27 100644 --- a/script/install-dependencies/debian-wheezy.sh +++ b/script/install-dependencies/debian-wheezy.sh @@ -1,8 +1,11 @@ -sources_entry='deb http://download.noosfero.org/debian/wheezy-1.1 ./' +binary_packages='deb http://download.noosfero.org/debian/wheezy-1.1 ./' -if ! grep -q "$sources_entry" /etc/apt/sources.list.d/noosfero.list; then +source_packages=$(echo "$binary_packages" | sed -e 's/^deb/deb-src/') + +if ! grep -q "$binary_packages" /etc/apt/sources.list.d/noosfero.list; then sudo tee /etc/apt/sources.list.d/noosfero.list <