summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-05-06 12:47:09 -0700
committerAaron Griffin <aaronmgriffin@gmail.com>2009-05-06 12:47:09 -0700
commit09e204f873e3f5e4c4bfe966fa1188bdefac3bb6 (patch)
tree8a4f2a55c129f199fdd11f3ab98c51bae8bd70b1
parent8e9a5b387a76f31796837e1000188d1152bd4b00 (diff)
db-update: Add some total counts to output
Original-work-by: François Charette <francois@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xdb-update6
1 files changed, 4 insertions, 2 deletions
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