Skip to content

Commit

Permalink
Fix folder name for R recipes (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotrevisani authored Jan 31, 2023
1 parent 0e51e02 commit 2f1af4b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions grayskull/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

from ruamel.yaml import YAML
from ruamel.yaml.comments import CommentedMap
from souschef.recipe import Recipe
from souschef.section import Section

log = logging.getLogger(__name__)
Expand Down Expand Up @@ -176,7 +177,7 @@ def format_dependencies(all_dependencies: List, name: str) -> List:


def generate_recipe(
recipe,
recipe: Recipe,
config,
folder_path: Union[str, Path] = ".",
):
Expand All @@ -185,7 +186,10 @@ def generate_recipe(
:param folder_path: Path to the folder
"""
pkg_name = config.name
if recipe["package"]["name"].value.startswith("r-{{"):
pkg_name = f"r-{config.name}"
else:
pkg_name = config.name
if origin_is_github(pkg_name):
pkg_name = pkg_name.split("/")[-1]
if Path(folder_path).is_file():
Expand Down

0 comments on commit 2f1af4b

Please sign in to comment.