Skip to content

Commit

Permalink
Recognize meta.yaml.template in conda package tarballs
Browse files Browse the repository at this point in the history
This work around the change introduced in conda-build v1.20.3
(conda/conda-build@b4ec0e0)
where meta.yaml is now stored in the info/recipe dir as meta.yaml.template.
  • Loading branch information
mjuric committed Jun 3, 2016
1 parent 11e198b commit 6a552b6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions conda_lsst/recipe_db.py
Expand Up @@ -139,13 +139,25 @@ def update(m, s): return m.update(s)
for suffix in suffixes:
if fn.endswith(suffix):
break

# Special handling for meta.yaml, to work around the change introduced in conda-build 1.20.3
# https://github.com/conda/conda-build/commit/b4ec0e0659d8f376042d4fc391616bf235996cf5 where
# meta.yaml is now stored in the recipe dir as meta.yaml.template
if fn.endswith('/meta.yaml.template'):
break
else:
continue

mm = hashlib.sha1()
with open(fn) as fp:
rel_fn = fn[len(ignore_prefix):]

# Special handling for meta.yaml, to work around the change introduced in conda-build 1.20.3
# https://github.com/conda/conda-build/commit/b4ec0e0659d8f376042d4fc391616bf235996cf5 where
# meta.yaml is now stored in the recipe dir as meta.yaml.template
if rel_fn == 'meta.yaml.template':
rel_fn = 'meta.yaml'

# Special handling of some files:
if rel_fn == 'meta.yaml':
# remove build number and modify the build string from the meta.yaml file
Expand Down

0 comments on commit 6a552b6

Please sign in to comment.