From 46da59148a2660f5dc947639fc25a1a375b45881 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@derf.homelinux.org>
Date: Wed, 9 Sep 2009 20:46:23 +0200
Subject: ct: {populate,genocide}_collected: Message improvements

---
 bin/ct | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/bin/ct b/bin/ct
index 7645107..7417e30 100755
--- a/bin/ct
+++ b/bin/ct
@@ -579,7 +579,7 @@ function populate_collected {
 	if [[ ! -d bin && ! -d man ]] {
 		return
 	}
-	info "Processing documentation\n"
+	info "Processing documentation and binaries\n"
 	for man in man/*/*(N); {
 		section=${man:h:t}
 		manpage=${man:t}
@@ -617,8 +617,11 @@ function populate_collected {
 function genocide_collected {
 	typeset i file man manual section
 	cd $PKG_DIR/$1 || return
+	if [[ ! -d bin && ! -d man ]] {
+		return
+	}
 	wrap_info $1
-	info "Removing documentation"
+	info "Removing documentation and binaries\n"
 	for man in man/*/*(N); {
 		section=${man:h:t}
 		manual=${man:t}
@@ -629,7 +632,6 @@ function genocide_collected {
 	for file in bin/*(N); {
 		rm -f $PKG_DIR/.collected/man/man1/${file:t}.1
 	}
-	clear_line
 	for file in bin/*(-*N); {
 		if [[ $(readlink $HOME/$file) == (../${PKG_DIR//$HOME\/}|$PKG_DIR)/$1/$file ]] {
 			rm -f $HOME/$file
-- 
cgit v1.2.3