From cdae2288e326f02c53838356f16cfc294b00a881 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 13 Apr 2015 11:42:44 +0800 Subject: [PATCH] chg: dev: [base-0k] load kalysto deb repository only if not already done and update indexes. --- precise/base-0k/hooks/install | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/precise/base-0k/hooks/install b/precise/base-0k/hooks/install index 2561a9a1..87209638 100755 --- a/precise/base-0k/hooks/install +++ b/precise/base-0k/hooks/install @@ -99,13 +99,22 @@ EOF ## kal-scripts ## -cat <> /etc/apt/sources.list +## +## kal-scripts +## + +if ! [ -e /etc/apt/sources.list.d/kalysto.org.list ]; then + cat < /etc/apt/sources.list.d/kalysto.org.list ## vlab's shell libraries deb http://deb.kalysto.org no-dist kal-alpha kal-beta kal-main EOF + ## Update only this repo: + apt-get update -o Dir::Etc::sourcelist="sources.list.d/kalysto.org.list" \ + -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" +fi ## ## More shell configurations (prompt, functions)