Skip to content

Commit

Permalink
Merge pull request #12 from boegel/include_easyblocks_from_pr
Browse files Browse the repository at this point in the history
use subdir in temp dir for easyblocks downloaded from PR
  • Loading branch information
migueldiascosta authored Apr 6, 2020
2 parents 255fcec + 76ef5f8 commit 5500370
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion easybuild/tools/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,9 @@ def fetch_files_from_pr(pr, path=None, github_user=None, github_repo=None):
if github_repo == GITHUB_EASYCONFIGS_REPO:
path = build_option('pr_path')
elif github_repo == GITHUB_EASYBLOCKS_REPO:
path = 'ebs_pr%s' % pr
path = os.path.join(tempfile.gettempdir(), 'ebs_pr%s' % pr)
else:
raise EasyBuildError("Unknown repo: %s" % github_repo)

if path is None:
path = tempfile.mkdtemp()
Expand Down

0 comments on commit 5500370

Please sign in to comment.