From 297d7c6941586504ed77b30b6e3b4cdf761d4cd9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 17 Feb 2009 19:41:21 +0100 Subject: [PATCH] unpack: some printf related changes. --HG-- extra : convert_revision : 6feb3492c0d59e80fa02fef527f2b9c8821cc56c --- lib/unpack.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/unpack.c b/lib/unpack.c index 44eaf353723..9a867e8a38f 100644 --- a/lib/unpack.c +++ b/lib/unpack.c @@ -199,6 +199,7 @@ unpack_archive_fini(struct archive *ar, const char *destdir, int flags, if (strcmp(prepost, archive_entry_pathname(entry)) == 0) { actgt = true; printf("\n"); + (void)fflush(stdout); archive_entry_set_pathname(entry, buf); @@ -222,13 +223,13 @@ unpack_archive_fini(struct archive *ar, const char *destdir, int flags, */ rv = archive_read_extract(ar, entry, lflags); if (rv != 0 && rv != EEXIST) { - printf("\ncouldn't unpack %s (%s), exiting!\n", + printf("ERROR: couldn't unpack %s (%s), exiting!\n", archive_entry_pathname(entry), strerror(errno)); (void)fflush(stdout); break; } else if (rv == EEXIST) { if (flags & XBPS_UNPACK_VERBOSE) { - printf("\nignoring existent component %s.\n", + printf("WARNING: ignoring existent path: %s.\n", archive_entry_pathname(entry)); (void)fflush(stdout); }