Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix '~' user source expansion for --copyout #1229

Merged

Conversation

praiskup
Copy link
Member

No description provided.

@praiskup praiskup force-pushed the praiskup-copyout-homedir branch from fda9d0c to b29539e Compare September 18, 2023 14:44
Previous versions of Mock mistakenly expanded every `~` occurrence
(tilde character) in the specified source path with `--copyout`. So
files `~/foo~bar.txt` were searched on path `/builddir/foo/builddirbar.txt`
instead of just `/biulddir/foo~bar.txt`. Fixes [rhbz#2239035][].
Copy link

Choose a reason for hiding this comment

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

There is a minor typo in the path in this line:

/biulddir/foo~bar.txt instead of /builddir/foo~bar.txt

Copy link

Choose a reason for hiding this comment

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

Thanks for working on this!

Copy link
Member Author

Choose a reason for hiding this comment

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

Heh, do you mean the additional just word? Sorry my eyes are tired today :D

Copy link

Choose a reason for hiding this comment

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

@praiskup No. builddir is spelled wrong with i coming before u: biuld

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed, good catch. Thanks!

@praiskup praiskup force-pushed the praiskup-copyout-homedir branch from b29539e to aa9a1c3 Compare September 18, 2023 15:21
@praiskup praiskup mentioned this pull request Sep 26, 2023
4 tasks
@xsuchy xsuchy merged commit c198b6c into rpm-software-management:main Sep 27, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants