mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-26 14:46:14 +01:00
parent
a57b8a60b2
commit
bf7899da83
@ -49,11 +49,16 @@ except ImportError:
|
||||
def catchterm(*args):
|
||||
raise oscerr.SignalInterrupt
|
||||
|
||||
|
||||
# Signals which should terminate the program safely
|
||||
for name in 'SIGBREAK', 'SIGHUP', 'SIGTERM':
|
||||
num = getattr(signal, name, None)
|
||||
if num:
|
||||
signal.signal(num, catchterm)
|
||||
|
||||
# Signals which should be ignored
|
||||
for sig in (signal.SIGWINCH,):
|
||||
signal.signal(sig, signal.SIG_IGN)
|
||||
|
||||
def run(prg, argv=None):
|
||||
try:
|
||||
|
@ -9,7 +9,6 @@ from . import cmdln
|
||||
from . import conf
|
||||
from . import oscerr
|
||||
import sys
|
||||
import signal
|
||||
import time
|
||||
import imp
|
||||
import inspect
|
||||
@ -1276,7 +1275,7 @@ class Osc(cmdln.Cmdln):
|
||||
t = linkinfo.get('project')
|
||||
if t is None:
|
||||
print("Skipping package ", p, " since it is a source link pointing inside the project.")
|
||||
continue
|
||||
continue
|
||||
print("Submitting package ", p)
|
||||
try:
|
||||
result = create_submit_request(apiurl, project, p, target_project, src_update=src_update)
|
||||
|
Loading…
Reference in New Issue
Block a user