mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-08-18 04:10:10 +02:00
handle Queue
This commit is contained in:
parent
0e0767492e
commit
1683df0cf8
@ -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…
Reference in New Issue
Block a user