Skip to content

Commit

Permalink
change how --shortcuts-only is set
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Mar 25, 2022
1 parent 4cbe932 commit 006c584
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion constructor/osxpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def move_script(src, dst, info):
if info.get("menu_packages"):
data = data.replace(
'__SHORTCUTS__',
f"--shortcuts-only={','.join(info['menu_packages'])}"
" ".join([f"--shortcuts-only={pkg.strip()}" for pkg in info['menu_packages']])
)
else:
data = data.replace('__SHORTCUTS__', "")
Expand Down
2 changes: 1 addition & 1 deletion constructor/shar.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_header(conda_exec, tarball, info):
replace['LICENSE'] = read_ascii_only(info['license_file'])

if info.get("menu_packages"):
replace['SHORTCUTS'] = f"--shortcuts-only={','.join(info['menu_packages'])}"
replace['SHORTCUTS'] = " ".join([f"--shortcuts-only={pkg.strip()}" for pkg in info['menu_packages']])
else:
replace['SHORTCUTS'] = ""

Expand Down

0 comments on commit 006c584

Please sign in to comment.