diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-05-06 12:47:09 -0700 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-05-06 12:47:09 -0700 |
commit | 09e204f873e3f5e4c4bfe966fa1188bdefac3bb6 (patch) | |
tree | 8a4f2a55c129f199fdd11f3ab98c51bae8bd70b1 | |
parent | 8e9a5b387a76f31796837e1000188d1152bd4b00 (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-x | db-update | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |