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

[dav] Fix beta cleanup script

parent bf43f231
No related branches found
No related tags found
1 merge request!122Prepare bob.devtools for .conda package support (c.f. issue #41)
......@@ -121,10 +121,13 @@ def remove_old_beta_packages(client, path, dry_run, pyver=True, includes=None):
if f.startswith("."):
continue
if not (f.endswith(".conda") or f.endswith(".tar.bz2")):
continue
name, version, build_string = f[:-8].rsplit("-", 2)
if f.endswith(".tar.bz2"):
name, version, build_string = f[:-8].rsplit("-", 2)
elif f.endswith(".conda"):
name, version, build_string = f[:-6].rsplit("-", 2)
else:
continue
# see if this package should be included or not in our clean-up
if (includes is not None) and (not includes.match(name)):
......
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