Skip to content

Commit b78b65f

Browse files
committed
Update for meta-recipe
1 parent 6ed420d commit b78b65f

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

ggd/install.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ def install_checksum(pkg_names, ggd_jdict, prefix=conda_root(), meta_recipe = Fa
662662

663663
## Get checksum dict
664664
if meta_recipe:
665+
assert meta_recipe_name != "", "\n:ggd:install: !!ERROR!! Unable to preform checksum on a meta-recipe wihtout the parent meta-recipe name"
665666
print("\n:ggd:install: NOTICE: Skipping checkusm for meta-recipe {} => {}".format(meta_recipe_name, ", ".join(pkg_names)))
666667
checksum_dict = {}
667668
# try:
@@ -820,16 +821,16 @@ def install(parser, args):
820821
is_metarecipe = True
821822
metarecipe_name = pkg
822823

823-
## Check number of packages
824-
if len(pkg_list) > 1:
825-
print("\n:ggd:install: GGD is currenlty only able to install a single meta-recipe at a time. Please remove other pkgs and install them with a subsequent command")
826-
sys.exit()
827-
828824
## Check for an meta-recipe ID
829825
if not args.id:
830826
print("\n:ggd:install: An ID is required in order to install a GGD meta-recipe. Please add the '--id <Some ID>' flag and try again")
831827
sys.exit()
832828

829+
## Check number of packages
830+
if len(pkg_list) > 1:
831+
print("\n:ggd:install: GGD is currenlty only able to install a single meta-recipe at a time. Please remove other pkgs and install them with a subsequent command")
832+
sys.exit()
833+
833834
## Id must be lower case for conda
834835
meta_recipe_id = args.id.lower()
835836

0 commit comments

Comments
 (0)