Skip to content

Conversation

@vladermolaev
Copy link

  • MS_Preextract creates temp script in $location rather than $tmpdir
  • New test case to verify the fix in test/preextracttest

@megastep megastep self-assigned this Oct 15, 2025
@megastep
Copy link
Owner

Afraid this breaks other tests...

@megastep megastep requested a review from Copilot October 15, 2025 22:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes issue #349 where pre-extraction scripts would fail when using the --notemp flag. The fix ensures that the pre-extraction script executes in $location (the extraction directory) instead of $tmpdir (which doesn't exist when --notemp is used). A new test case validates that pre-extraction scripts work correctly with the --notemp flag.

  • Changed pre-extraction script execution directory from $tmpdir to $location
  • Added test case testPreextractNotemp to verify pre-extraction scripts work with --notemp

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
makeself-header.sh Changed pre-extraction script execution to use $location instead of $tmpdir
test/preextracttest Added test case to verify pre-extraction scripts work with --notemp flag

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@megastep megastep added the bugfix Bug fix label Oct 15, 2025
@vladermolaev vladermolaev force-pushed the master branch 3 times, most recently from ea21f45 to 6e476fb Compare October 17, 2025 02:15
… --notemp

- MS_Preextract uses basename of pre-extraction script to run it
- New test case to verify the fix in test/preextracttest
@vladermolaev
Copy link
Author

Please review. All tests are green now.

@megastep
Copy link
Owner

OK, the NetBSD test fails but I think that's unrelated (been broken for a while). I'll merge, thanks!

@megastep megastep requested review from Copilot and megastep October 17, 2025 03:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

makeself-header.sh:1

  • The prescript is created in $location (line 327) but executed from $tmpdir (line 331). If these directories differ (as with --notemp), the script won't be found at ./\$prescript_basename. The script should either be created in $tmpdir or the execution should reference the correct directory.
cat << EOF  > "$archname"

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@megastep megastep merged commit a9d64f3 into megastep:master Oct 17, 2025
21 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants