unpack: some printf related changes.

--HG--
extra : convert_revision : 6feb3492c0d59e80fa02fef527f2b9c8821cc56c
This commit is contained in:
Juan RP 2009-02-17 19:41:21 +01:00
parent cc162c2691
commit 297d7c6941
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}