Skip to content

Commit

Permalink
Merge pull request #689 from douglasjacobsen/fix-spack-path-vars
Browse files Browse the repository at this point in the history
Remove new lines when defining path variables for spack
  • Loading branch information
linsword13 authored Oct 10, 2024
2 parents 3e76338 + 896a485 commit a729986
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1128,11 +1128,17 @@ def get_package_path(self, package_spec):
name_match = name_regex.match(name)
if name_match:
name = name_match.group("name")
else:
# Remove newlines and whitespace from name
name = name.replace("\n", "").strip()

if location is None:
location = os.path.join(
"dry-run", "path", "to", shlex.split(package_spec)[0]
)
else:
# Remove newlines and whitespace from location
location = location.replace("\n", "").strip()

return (name, location)

Expand Down

0 comments on commit a729986

Please sign in to comment.