Change-Id: If18611e8398ec105c63d2f2cf993bb5f290ac2ba
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
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)))
# 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):