-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
cp: fix update prompting #7668
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
cp: fix update prompting #7668
Conversation
…is newer, to skip copying
GNU testsuite comparison:
|
Can you please run the tests? Your solution currently breaks two tests. |
sorry about that, not sure how i missed that. |
GNU testsuite comparison:
|
nice! two things:
|
- adjusted conditions to satisfy clippy
GNU testsuite comparison:
|
Apologizes for the failed checks still, could I get some help/clarification on the errors I'm seeing?
Are these failed tests actionable for me? If so, are there starting steps I should take? The patience and feedback is much appreciated! |
@hz2 no, those failing tests are unrelated to your PR. |
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
@cakebaker much cleaner, thank you! |
GNU testsuite comparison:
|
Thanks for your PR :) |
* added logic to check if we are updating the file and the destination is newer, to skip copying * corrected logic to handle cp update * - added test case that mocks the issue described in uutils#7660 - adjusted conditions to satisfy clippy * typo * Update src/uu/cp/src/cp.rs Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com> * Update tests/by-util/test_cp.rs Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com> --------- Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
copy_source
after resolving src and dst to comparetimestamps
Fixes #7660