Skip to content

Commit 931865f

Browse files
committed
Merge remote-tracking branch 'origin/integracion' into merge
Merging mac os support fixes
2 parents 5a081cf + 9f6e4c1 commit 931865f

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

faraday

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ else
207207
fi
208208
if [ $faraday_os == Darwin ]; then
209209
echo [!] OSX support is limited
210-
arch -i386 python main.py $@
210+
python main.py $@
211211
else
212212
$faraday_pyver main.py $@
213213
fi

plugins/core.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,20 +213,19 @@ def processOutput(self, plugin, output):
213213
output_queue.put(None)
214214
output_queue.join()
215215

216-
model.api.devlog("Core: queue size '%s'" % new_elem_queue.qsize())
216+
#model.api.devlog("Core: queue size '%s'" % new_elem_queue.qsize())
217217
while True:
218218
try:
219219
current_action = new_elem_queue.get(block=False)
220+
if current_action is None:
221+
break
220222
action = current_action[0]
221223
parameters = current_action[1:]
222224
model.api.devlog("Core: Processing a new '%s' , parameters (%s) \n" % (action,str(parameters)))
223225
self._processAction(action, parameters)
224226

225227
except Queue.Empty:
226-
if new_elem_queue.qsize() > 0:
227-
continue
228-
else:
229-
break
228+
continue
230229
except IOError, e:
231230
if e.errno == errno.EINTR:
232231
continue
@@ -799,7 +798,6 @@ def run(self):
799798
try:
800799
self.new_elem_queue.put(self.plugin._pending_actions.get(block=False))
801800
except Queue.Empty:
802-
803801
model.api.devlog("PluginProcess run _pending_actions queue Empty. Breaking loop")
804802
break
805803
except Exception:
@@ -813,5 +811,6 @@ def run(self):
813811
model.api.devlog('%s: Exiting' % proc_name)
814812

815813
self.output_queue.task_done()
814+
self.new_elem_queue.put(None)
816815
return
817816

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ couchdbkit==0.6.5
22
mockito==0.5.1
33
whoosh==2.5.5
44
argparse==1.1
5-
psycopg2==2.4.5
5+
#psycopg2==2.4.5
66
ipy==0.75
77
restkit==4.2.2
88
requests==1.2.3
99
tornado==3.2
1010
Flask==0.10.1
11-
python-dateutil=2.2
11+
python-dateutil==2.2

zsh/faraday.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ add-output() {
1818
old_cmd=$BUFFER
1919
new_cmd=`python2 $plugin_controller_client send_cmd $BUFFER`
2020
BUFFER=" $new_cmd"
21-
zle .$WIDGET "$@"
21+
zle .accept-line "$@"
2222
}
2323

2424
function zshaddhistory() {

0 commit comments

Comments
 (0)