aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Rendina <mrendina@stsci.edu>2018-05-04 08:44:59 -0400
committerMatt Rendina <mrendina@stsci.edu>2018-05-04 08:44:59 -0400
commitee69b2792e3ca2786a8a0643b2e376a24e18195b (patch)
tree76300da5c345aa67cf305ea4a0c8b802b1054e87
parentea8bcba10d429c226d3600b4d771f210b6e9d5f7 (diff)
downloadrambo-ee69b2792e3ca2786a8a0643b2e376a24e18195b.tar.gz
Fix return value
-rwxr-xr-xrambo/meta.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/rambo/meta.py b/rambo/meta.py
index 2f563b2..b71d6f8 100755
--- a/rambo/meta.py
+++ b/rambo/meta.py
@@ -257,9 +257,10 @@ class MetaSet(object):
GIT_DESCRIBE_TAG=gd_tag,
GIT_DESCRIBE_NUMBER=gd_number,
GIT_DESCRIBE_HASH=gd_hash)
- return safe_load(output)
+ fastyaml = safe_load(output)
except(KeyError):
print('no source field in recipe: {}'.format(pkgname))
+ return fastyaml
def read_recipe_selection(self, directory, recipe_list):
'''Process a directory, reading in each conda recipe found, creating
@@ -301,14 +302,16 @@ class MetaSet(object):
except:
rundep_names = ''
# TODO INFO
- print('"Incomplete" metadata. No run requirements.')
+ print('"Incomplete" metadata for {}. No run requirements.'.format(
+ rdirname))
try:
blddep_names = [x.split()[0] for x in
fastyaml['requirements']['build']]
except:
blddep_names = ''
- print('"Incomplete" metadata. No build requirements.')
+ print('"Incomplete" metadata for {}. No build requirements.'.format(
+ rdirname))
# If filter-nonpy specified, skip all recipes that have a python
# dependency.