From e4104835556c64f7187164cc3b6241aa4a63375c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 19 Feb 2007 12:16:42 +0000 Subject: release 0.8_beta2. fixed bug update-conf and lbu commit whern there already exist a /etc/lbu/include file --- lbu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lbu') diff --git a/lbu b/lbu index d7616e9..65e2579 100644 --- a/lbu +++ b/lbu @@ -173,9 +173,9 @@ cmd_commit() { cd "$ROOT" # for upgrading from packages.list times - if [ ! -f "$INCLUDE_LIST" ] ; then - mkdir -p $(dirname "$INCLUDE_LIST") - echo "var/lib/apk/world" > "$INCLUDE_LIST" + mkdir -p $(dirname "$INCLUDE_LIST") + if ! grep "var/lib/apk/world" "$INCLUDE_LIST" >/dev/null 2>&1 ; then + echo "var/lib/apk/world" >> "$INCLUDE_LIST" fi # Automatically add list and modified files -- cgit v1.2.3