From 0273fce90a5c8977a7bb28d5bb6f69aebb62934e Mon Sep 17 00:00:00 2001 From: Raju Vindane Date: Mon, 25 Jun 2018 21:06:09 +0530 Subject: [PATCH 1/2] added the script for addition of repositories inside the postinst script. This edits the sources.list in a cleaner way --- packages/hamara-sugam-config/debian/postinst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/hamara-sugam-config/debian/postinst b/packages/hamara-sugam-config/debian/postinst index bded9e7e..11637aee 100644 --- a/packages/hamara-sugam-config/debian/postinst +++ b/packages/hamara-sugam-config/debian/postinst @@ -1,3 +1,11 @@ #!/bin/bash #Remove gtkhash desktop file rm -f /usr/share/applications/gtkhash.desktop + +#install hamara Sugam repositories +echo "#Hamara Sugam repositories" > /etc/apt/sources.list +echo "deb http://in.devel.hamaralinux.org/hamara-sugam namaste main contrib non-free" >> /etc/apt/sources.list +echo "deb-src http://in.devel.hamaralinux.org/hamara-sugam namaste main contrib non-free" >> /etc/apt/sources.list +echo "deb http://security.debian.org/debian-security testing/updates main" >> /etc/apt/sources.list + +apt update -- 2.17.1 From 19aafe8df64030683898c0ccac3781d0a2b4032b Mon Sep 17 00:00:00 2001 From: Raju Vindane Date: Mon, 25 Jun 2018 21:20:12 +0530 Subject: [PATCH 2/2] removed the adding of sources.list in postinst --- packages/hamara-sugam-config/debian/postinst | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/hamara-sugam-config/debian/postinst b/packages/hamara-sugam-config/debian/postinst index 11637aee..19d5ee54 100644 --- a/packages/hamara-sugam-config/debian/postinst +++ b/packages/hamara-sugam-config/debian/postinst @@ -1,11 +1,3 @@ #!/bin/bash #Remove gtkhash desktop file -rm -f /usr/share/applications/gtkhash.desktop - -#install hamara Sugam repositories -echo "#Hamara Sugam repositories" > /etc/apt/sources.list -echo "deb http://in.devel.hamaralinux.org/hamara-sugam namaste main contrib non-free" >> /etc/apt/sources.list -echo "deb-src http://in.devel.hamaralinux.org/hamara-sugam namaste main contrib non-free" >> /etc/apt/sources.list -echo "deb http://security.debian.org/debian-security testing/updates main" >> /etc/apt/sources.list - -apt update +rm -f /usr/share/applications/gtkhash.desktop \ No newline at end of file -- 2.17.1