Update system.py: forgot to add the corresponding stdin arg in some previous commit x_x

This commit is contained in:
Alexandre Aubin 2024-07-10 23:37:41 +02:00 committed by GitHub
parent 401ccf69c7
commit ab8e0e6619
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -299,7 +299,7 @@ def aptitude_with_progress_bar(cmd):
read, write = os.pipe() read, write = os.pipe()
os.write(write, b"y\ny\ny") os.write(write, b"y\ny\ny")
os.close(write) os.close(write)
ret = call_async_output(cmd, callbacks, shell=True) ret = call_async_output(cmd, callbacks, shell=True, stdin=read)
if log_apt_status_to_progress_bar.previous_package is not None and ret == 0: if log_apt_status_to_progress_bar.previous_package is not None and ret == 0:
log_apt_status_to_progress_bar("done::100:Done") log_apt_status_to_progress_bar("done::100:Done")