pungi/pungi/wrappers
Lubomír Sedlář e6a26571e0 scm: Close stdin of processing command
It is possible the user set a command to run in cloned Git repository,
but that command can ask for additional input. However Pungi will
capture all output, so if there is a prompt, it will never be shown.

In order to prevent confusion ("Did this hang?"), let's send empty
string to stdin of the program. That will cause any possible read to see
EOF immediately, which should cause an error that will then be reported
by Pungi to the user.

It is still possible the program will wait for input if it reads
directly from TTY. However in such case the prompt should hopefully also
be sent to TTY directly, so that possible confusion should be cleared.

JIRA: COMPOSE-3598
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2019-06-20 09:07:07 +02:00
..
__init__.py Initial code merge for Pungi 4.0. 2015-02-10 08:19:34 -05:00
comps.py comps-wrapper: Emit attributes sorted 2019-04-18 10:23:51 +02:00
createrepo.py CreaterepoWrapper: add 'basedir' and 'compress-type' args for createrepo_c 2019-01-03 10:37:59 +01:00
fus.py fus: Support HTTP repos 2019-06-07 14:43:04 +02:00
iso.py Make the Apple/HFS compatibility configurable 2019-02-21 16:11:01 +01:00
jigdo.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
kojiwrapper.py Whitespace cleanup 2019-05-31 09:14:26 +02:00
lorax.py Expose lorax's --rootfs-size argument 2016-11-17 10:17:39 -05:00
pungi.py Write package whitelist for each variant 2018-03-08 14:29:23 +01:00
repoclosure.py repoclosure: Extract logs from hybrid solver 2018-10-26 08:42:21 +02:00
scm.py scm: Close stdin of processing command 2019-06-20 09:07:07 +02:00
variants.py Remove unused variable 2019-05-31 15:57:55 +02:00