Skip to content
Snippets Groups Projects
Commit c4ed3dc0 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Get mtime from the right path

parent d0cba411
No related branches found
No related tags found
No related merge requests found
...@@ -79,12 +79,13 @@ def main(scandir, dry_run): ...@@ -79,12 +79,13 @@ def main(scandir, dry_run):
# got a beta package since it matches our regex, insert it into our # got a beta package since it matches our regex, insert it into our
# list of packages to evaluate # list of packages to evaluate
name = os.path.basename(path) + '-' + m.group('name') 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') if m.group('python') is not None: name += '-' + m.group('python')
betas.setdefault(name, []).append(( betas.setdefault(name, []).append((
StrictVersion(m.group('version')), #version StrictVersion(m.group('version')), #version
int(m.group('build')), #build number int(m.group('build')), #build number
os.path.getmtime(path), #cross-platform last modification time os.path.getmtime(target), #cross-platform last modification time
os.path.join(path, f), target,
)) ))
count = sum([len(k) for k in betas.values()]) - len(betas) count = sum([len(k) for k in betas.values()]) - len(betas)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment