Skip to content

Commit

Permalink
fix condaci purging for PEP440
Browse files Browse the repository at this point in the history
  • Loading branch information
jabooth committed Jun 26, 2015
1 parent 3409aa1 commit 204df00
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions condaci.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ def all_info(self):
name_from_filename = lambda fn: fn.split('-')[0]
version_from_filename = lambda fn: fn.split('-')[1]
platform_from_filepath = lambda fp: p.split(p.split(fp)[0])[-1]
version_is_tag = lambda v: '_' not in v

version_is_tag = lambda v: '+' not in v
same_version_different_build = lambda v1, v2: v2.startswith(v1.split('+')[0])

def channels_for_user(b, user):
return b.list_channels(user).keys()
Expand Down Expand Up @@ -308,7 +308,8 @@ def files_to_remove(b, user, channel, filepath):
f.configuration == configuration and
f.platform == platform_ and
f.version != version and
not version_is_tag(f.version)]
not version_is_tag(f.version) and
same_version_different_build(version, f.version)]


def purge_old_files(b, user, channel, filepath):
Expand Down

0 comments on commit 204df00

Please sign in to comment.