-
Notifications
You must be signed in to change notification settings - Fork 145
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
Move copy_from_guest to provision/base.py #75
Conversation
89079d0
to
36c3440
Compare
force-push 36c3440: rebase on top of newer, non-broken master |
Congratulations! The build has finished successfully. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PTAL.
What other 'little' changes were introduced?
a5a683f
to
88a0392
Compare
There really aren't many changes here:
- target_dir = self.quote(target_dir)
- target = self.quote(target)
- return f'mkdir -p {target_dir}; cp -vafr {target} {target_dir}'
+ return f'mkdir -p "{target_dir}"; cp -vafr "{target}" "{target_dir}"' I've expanded the commit message to mention 2 and 3. |
I don't see why, apart from losing one single-line method... @psss WDYT? |
This, and two lines spent invoking it. |
Well, that was only to make it more readable. I really try to avoid hardcoding stuff in favor of reusability. Also prior use of |
Should I revert it and move the quote method as well? |
We've agreed \w @thrix to move Note: prepare has it's own variant with single quoting on purpose (so it could nest correctly with the vagrant one:
Please ignore it for now :) |
84528ae
to
fd41beb
Compare
Like this? |
... taking cmd_mkcp with it and extracting quote() to tmt.utils.
fd41beb
to
a71f743
Compare
Rebased against current master. |
Looks good. Thanks for moving the method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Yes thank you both! I didn't know you can actually include |
... and change it a little.