Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the ChangeDirectory.execute_step() method and enhance the
"directory" recipe step classes to perform within the temporary working directory created by the InstallEnvironment.make_tmp_dir() method (via the use of a new TMP_WORK_DIR reserved word in recipes) in addition to the $INSTALL_DIR reserved word (which has always been supported in recipes). This commit grew out of a fix for the following code in the ChangeDirectory.execute_step() method, which does not perform as the comment describes: ================= # Change directory to a directory above the current working directory, but within the defined work_dir. dir = target_directory.replace( os.path.realpath( work_dir ), '' ).lstrip( '/' ) ================== The resulting directory is always within the current working directory rather than "above" it. The new TMP_WORK_DIR reserved word points to the actual temporary working directory, so recipes now have a way to do perform actions within that directory during the compilation and installation process.
- Loading branch information
1 parent
e8b267b
commit e55c5e5
Showing
1 changed file
with
55 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters