From 09e204f873e3f5e4c4bfe966fa1188bdefac3bb6 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Wed, 6 May 2009 12:47:09 -0700 Subject: db-update: Add some total counts to output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original-work-by: François Charette Signed-off-by: Aaron Griffin --- db-update | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'db-update') diff --git a/db-update b/db-update index 507d40a..cb00f39 100755 --- a/db-update +++ b/db-update @@ -81,7 +81,8 @@ if [ -d "$stagedir" ]; then ANYPKGS="$(/bin/ls $stagedir/*-any$PKGEXT 2>/dev/null)" fi -echo "==> Processing new/updated arch-independent packages for '$reponame'..." >&2 +pkgtotal=$(echo "$ANYPKGS" | wc -w) +echo "==> Processing $pkgtotal new/updated arch-independent packages for '$reponame'..." >&2 cd "$WORKDIR" svnpath="$(get_svnpath $reponame)" /usr/bin/svn checkout -N $svnpath checkout @@ -152,7 +153,8 @@ for A in ${ARCHES[@]}; do /bin/cp "$ftppath/$reponame.db.tar.$DB_COMPRESSION" build/ fi - echo "==> Processing new/updated packages for repository '$reponame'..." >&2 + pkgtotal=$(echo "$ADDPKGS $ANYPKGS" | wc -w) + echo "==> Processing $pkgtotal new/updated packages for repository '$reponame'..." >&2 cd "$WORKDIR" /usr/bin/svn checkout -N $svnpath checkout -- cgit v1.2.3