From dce1283e88e4d664637b0301bdfbbdd7748c00a9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 1 Nov 2009 07:32:06 +0100 Subject: [PATCH] xbps-bin: improve 'check all' target output. --HG-- extra : convert_revision : xtraeme%40gmail.com-20091101063206-s6kl51gqfugiapkl --- bin/xbps-bin/check.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/xbps-bin/check.c b/bin/xbps-bin/check.c index 49693318..ff7812cc 100644 --- a/bin/xbps-bin/check.c +++ b/bin/xbps-bin/check.c @@ -51,7 +51,7 @@ xbps_check_pkg_integrity_all(void) prop_dictionary_t d; prop_object_t obj; prop_object_iterator_t iter; - const char *pkgname; + const char *pkgname, *version; int rv = 0; size_t npkgs = 0, nbrokenpkgs = 0; @@ -65,9 +65,12 @@ xbps_check_pkg_integrity_all(void) while ((obj = prop_object_iterator_next(iter)) != NULL) { prop_dictionary_get_cstring_nocopy(obj, "pkgname", &pkgname); + prop_dictionary_get_cstring_nocopy(obj, "version", &version); + printf("Checking %s-%s ...\n", pkgname, version); if ((rv = xbps_check_pkg_integrity(pkgname)) != 0) nbrokenpkgs++; npkgs++; + printf("\033[1A\033[K"); } prop_object_iterator_release(iter);