From 021c83ece6f790104b6e4bef3600eef0155cfa4b Mon Sep 17 00:00:00 2001 From: Alberto Planas Date: Thu, 3 Jul 2014 16:21:36 +0200 Subject: [PATCH] Hide 'Found previous link.' complains --- osc-check_repo.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/osc-check_repo.py b/osc-check_repo.py index b7575e42..7e48de51 100644 --- a/osc-check_repo.py +++ b/osc-check_repo.py @@ -118,7 +118,8 @@ def _download(self, request, todownload, opts): try: os.symlink(t, os.path.join(disturldir, fn)) except: - print 'Found previous link.' + pass + # print 'Found previous link.' request.downloads[(_project, _repo, disturl)].append(t) @@ -131,7 +132,11 @@ def _download(self, request, todownload, opts): arch, request.src_package, fn, t, mt) if last_disturldir: - os.symlink(t, os.path.join(last_disturldir, fn)) + try: + os.symlink(t, os.path.join(last_disturldir, fn)) + except: + pass + # print 'Found previous link.' else: print "I don't know where to put", fn