From 571bf8574af207d4981a8321557db75365b0b0ff Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 23 Jan 2014 12:15:38 +0100 Subject: [PATCH] fix off-by-one bug introduced by Thomas --- osc-check_repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc-check_repo.py b/osc-check_repo.py index 86ccf5ce..5195bb86 100644 --- a/osc-check_repo.py +++ b/osc-check_repo.py @@ -692,7 +692,7 @@ def _check_repo_get_binary(self, apiurl, prj, repo, arch, package, file, target, if os.path.exists(target): # we need to check the mtime too as the file might get updated cur = os.path.getmtime(target) - if mtime > cur: + if cur > mtime: return get_binary_file(apiurl, prj, repo, arch, file, package = package, target_filename = target)