Kaydet (Commit) 8458bb12 authored tarafından Faik Uygur's avatar Faik Uygur

* canceled by comar.

üst 367fa5ad
......@@ -11,6 +11,8 @@
# Please read the COPYING file.
#
import sys
import signal
import string
import pisi.api
......@@ -20,6 +22,8 @@ import pisi.lockeddbshelve
import pisi.ui
import pisi.context
CANCELED = 100
class UI(pisi.ui.UI):
def error(self, msg):
notify("System.Manager.error","%s" % msg)
......@@ -66,6 +70,7 @@ class UI(pisi.ui.UI):
notify("System.Manager.progress", out)
def _init_pisi():
signal.signal(signal.SIGINT, sig_handler)
ui = UI()
try:
pisi.api.init(ui=ui)
......@@ -182,3 +187,6 @@ def setRepositories(repos=None):
finished("System.Manager.setRepositories")
def sig_handler(sig, frame):
pisi.api.finalize()
sys.exit(CANCELED)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment