From c4ed3dc0eeae7e2aa43817c03712d0c0c97a336e Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Thu, 1 Mar 2018 16:24:32 +0100
Subject: [PATCH] Get mtime from the right path

---
 conda/clean-betas.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/conda/clean-betas.py b/conda/clean-betas.py
index 00ff553..5c3559f 100755
--- a/conda/clean-betas.py
+++ b/conda/clean-betas.py
@@ -79,12 +79,13 @@ def main(scandir, dry_run):
       # got a beta package since it matches our regex, insert it into our
       # list of packages to evaluate
       name = os.path.basename(path) + '-' + m.group('name')
+      target = os.path.join(path, f)
       if m.group('python') is not None: name += '-' + m.group('python')
       betas.setdefault(name, []).append((
         StrictVersion(m.group('version')), #version
         int(m.group('build')), #build number
-        os.path.getmtime(path), #cross-platform last modification time
-        os.path.join(path, f),
+        os.path.getmtime(target), #cross-platform last modification time
+        target,
         ))
 
   count = sum([len(k) for k in betas.values()]) - len(betas)
-- 
GitLab