A gui application used for interactive upgrade reminders on Debian. I no longer use it and will not push changes.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

10 rindas
718 B

  1. I have an async function and would like to use subprocess.Popen instead of subprocess.run() to avoid blocking the thread. Using the communicate() function blocks the thread, and I'm worried about using shell=True because a password is being passed. The current function gives me an `unsupported fileno` exception. Popen.stdin.write() causes the subprocess to hang forever as if it were never started. I can still use sudo in another terminal when this happens.
  2. proc = subprocess.Popen(['sudo', '-S', 'apt-get', cmd, '-y'],
  3. stdout=subprocess.PIPE,
  4. stderr=subprocess.STDOUT,
  5. stdin=io.BytesIO(password.encode()))