Fix clone_gitproject invocation in job_policycheck.py
authorLingchaox Xin <lingchaox.xin@intel.com>
Thu, 23 May 2013 08:57:25 +0000 (16:57 +0800)
committerLingchaox Xin <lingchaox.xin@intel.com>
Thu, 23 May 2013 09:02:59 +0000 (17:02 +0800)
Since we try to clone git project for 3 times in clone_gitproject method,
no need using retry method here.

Change-Id: I07d0c72440e260d3f0e425805f06bcce13c3f545

job_policycheck.py

index 0121545..188af78 100755 (executable)
@@ -46,7 +46,8 @@ def is_git_obs_mapping_exists(git_cache_dir, mapping_prj):
     if not os.path.isfile('%s/%s/git-obs-mapping.xml' % (git_cache_dir, \
             mapping_prj)):
         print('Update %s/git-obs-mapping.xml to local.' % mapping_prj)
-        if not utils.retry(clone_gitproject, (mapping_prj, git_cache_dir)):
+        if not clone_gitproject(mapping_prj, os.path.join(git_cache_dir,
+            mapping_prj)):
             return False
     return True