From 8f119a4076dff5eaac9a5e2c9954b1e2e6272b2a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 27 Nov 2011 10:05:23 +0100 Subject: [PATCH] xbps-bin: make symlinks check to report an error msg on failure. --- bin/xbps-bin/check_pkg_symlinks.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/xbps-bin/check_pkg_symlinks.c b/bin/xbps-bin/check_pkg_symlinks.c index 09a467cf..90112a19 100644 --- a/bin/xbps-bin/check_pkg_symlinks.c +++ b/bin/xbps-bin/check_pkg_symlinks.c @@ -55,7 +55,7 @@ check_pkg_symlinks(prop_dictionary_t pkgd_regpkgdb, prop_object_iterator_t iter; const char *pkgname, *file, *tgt = NULL; char *path, buf[PATH_MAX]; - bool test_broken = false; + bool broken = false, test_broken = false; (void)pkg_propsd; prop_dictionary_get_cstring_nocopy(pkgd_regpkgdb, "pkgname", &pkgname); @@ -106,5 +106,9 @@ check_pkg_symlinks(prop_dictionary_t pkgd_regpkgdb, } prop_object_iterator_release(iter); } - return test_broken; + if (test_broken) { + xbps_error_printf("%s: symlinks check FAILED.\n", pkgname); + broken = true; + } + return broken; }