from gitbuildsys.oscapi import OSC
from gitbuildsys.utils import Temp
+from common.utils import retry
+
from osc import conf, core
# the result, in unicode string
return reqinfo
+ @retry()
+ def exists(self, prj, pkg=''):
+ """ Overwrite the exists function with retry decorator
+ """
+ try:
+ return super(BuildService, self).exists(prj, pkg)
+ except ObsError
+ return False
+
def get_request_list(self, dst_prj, dst_pkg, user='', req_type='', \
req_state=()):
"""Get already existing request list to the same obs project