Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/util.c')
-rw-r--r--lib/libalpm/util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 5696a45a..7e8f85ed 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -681,6 +681,12 @@ int _alpm_run_chroot(alpm_handle_t *handle, const char *cmd, char *const argv[],
STOP_POLLING(parent2child);
}
}
+ /* process anything left in the input buffer */
+ if(ilen) {
+ /* buffer would have already been flushed if it had a newline */
+ strcpy(ibuf + ilen, "\n");
+ _alpm_chroot_process_output(handle, ibuf);
+ }
#undef STOP_POLLING