From: Hasan Wan Date: Fri, 31 May 2013 08:44:50 +0000 (+0800) Subject: remove the old package if exists, remove the debug message X-Git-Tag: 0.14~149 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=daa7211d72c455d1ced53d99119cee178d4f628f;p=services%2Fjenkins-scripts.git remove the old package if exists, remove the debug message Change-Id: If18611e8398ec105c63d2f2cf993bb5f290ac2ba Signed-off-by: Hasan Wan --- diff --git a/common/buildservice.py b/common/buildservice.py index 92a6363..8333c0d 100644 --- a/common/buildservice.py +++ b/common/buildservice.py @@ -321,7 +321,6 @@ class BuildService(OSC): def get_repo_state(self, project): """Get repo's state of the project""" targets = {} - print "==%s= %s=" % self.apiurl, project try: tree = ElementTree.fromstring(''.join(core.show_prj_results_meta( \ self.apiurl, project))) diff --git a/common/repomaker.py b/common/repomaker.py index a34638a..4d60b0e 100644 --- a/common/repomaker.py +++ b/common/repomaker.py @@ -90,6 +90,8 @@ def move_or_hardlink(fpath, target_dirs, move=False): # already moved noarch package. symlink it. os.symlink(os.path.join(target_dirs[0], fname), tpath) else: + if os.path.isfile(tpath): + os.remove(tpath) os.link(fpath, tpath) class RepoMaker(object):