From 46badcc1a242ea9b85f44470520696213927e93a Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Wed, 14 Mar 2018 08:06:09 +0100 Subject: [PATCH] Try a fix for issue #77 --- conda/clean-betas.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conda/clean-betas.py b/conda/clean-betas.py index 75a09e9..b2950b7 100755 --- a/conda/clean-betas.py +++ b/conda/clean-betas.py @@ -17,9 +17,11 @@ def main(scandir, dry_run): if f.startswith('.'): continue if not f.endswith('.tar.bz2'): continue name, version, build_string = f[:-8].rsplit('-', 2) - build = build_string.rsplit('_')[-1] + hash_, build = build_string.rsplit('_') + pyver, _ = hash_.rsplit('h', 1) name = os.path.basename(path) + '/' + name + if pyver: name += '/' + pyver target = os.path.join(path, f) betas.setdefault(name, []).append(( StrictVersion(version), -- GitLab