index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2015-11-28 13:20:35 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-11-29 08:12:44 +1000 |
commit | dfa4dcb16d42a84a76ed22792f681190aaa60b31 (patch) | |
tree | 8422a75246d0047fb7cb4eb705cbf49ec705bb61 /lib/libalpm/util.c | |
parent | 34bbe4cf7b8c70fda3475ee2e936db93c4fe427a (diff) |
-rw-r--r-- | lib/libalpm/util.c | 6 |
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 |