mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03:00
handle Queue
This commit is contained in:
parent
0e0767492e
commit
1683df0cf8
1 changed files with 8 additions and 2 deletions
|
@ -29,12 +29,18 @@ import stat
|
|||
import subprocess
|
||||
import time
|
||||
import operator
|
||||
import Queue
|
||||
import logging
|
||||
import hashlib
|
||||
import socket
|
||||
import xml.etree.ElementTree as XMLElementTree
|
||||
|
||||
try:
|
||||
# Python 2
|
||||
from Queue import Queue
|
||||
except ImportError:
|
||||
# Python 3
|
||||
from queue import Queue
|
||||
|
||||
from zipfile import ZipFile
|
||||
|
||||
import metadata
|
||||
|
@ -1606,7 +1612,7 @@ def FDroidPopen(commands, cwd=None, output=True):
|
|||
raise BuildException("OSError while trying to execute " +
|
||||
' '.join(commands) + ': ' + str(e))
|
||||
|
||||
stdout_queue = Queue.Queue()
|
||||
stdout_queue = Queue()
|
||||
stdout_reader = AsynchronousFileReader(p.stdout, stdout_queue)
|
||||
|
||||
# Check the queue for output (until there is no more to get)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue