From daa7211d72c455d1ced53d99119cee178d4f628f Mon Sep 17 00:00:00 2001 From: Hasan Wan Date: Fri, 31 May 2013 16:44:50 +0800 Subject: [PATCH] remove the old package if exists, remove the debug message Change-Id: If18611e8398ec105c63d2f2cf993bb5f290ac2ba Signed-off-by: Hasan Wan --- common/buildservice.py | 1 - common/repomaker.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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): -- 2.7.4