wait_comar in make_com as comar's post script restarts itself...
This commit is contained in:
+3
-1
@@ -16,7 +16,6 @@ import gettext
|
|||||||
__trans = gettext.translation('pisi', fallback=True)
|
__trans = gettext.translation('pisi', fallback=True)
|
||||||
_ = __trans.ugettext
|
_ = __trans.ugettext
|
||||||
|
|
||||||
import comar
|
|
||||||
import pisi
|
import pisi
|
||||||
import pisi.context as ctx
|
import pisi.context as ctx
|
||||||
|
|
||||||
@@ -27,6 +26,9 @@ class Error(pisi.Error):
|
|||||||
|
|
||||||
def make_com():
|
def make_com():
|
||||||
try:
|
try:
|
||||||
|
import comar
|
||||||
|
if not wait_comar():
|
||||||
|
raise comar.Error
|
||||||
if ctx.comar_sockname:
|
if ctx.comar_sockname:
|
||||||
com = comar.Link(sockname=ctx.comar_sockname)
|
com = comar.Link(sockname=ctx.comar_sockname)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user