adoroszlai opened a new pull request, #8346:
URL: https://github.com/apache/ozone/pull/8346

   ## What changes were proposed in this pull request?
   
   HDDS-12893 changed `cp -n` to `cp --update=none` to get rid of warning:
   
   ```
   cp: warning: behavior of -n is non-portable and may change in future; use 
--update=none instead
   ```
   
   Now on Ubuntu 22.04 we get error:
   
   ```
   cp: option '--update' doesn't allow an argument
   ```
   
   Since `-n`, `--update=none` etc. are version/platform dependent, we can 
simply remove it and overwrite files.  The original reason for using `-n` was 
to not generate multiple lines of output from `cp` for the same target jar.  We 
can turn off verbose mode and avoid the problem.
   
   https://issues.apache.org/jira/browse/HDDS-12917
   
   ## How was this patch tested?
   
   CI:
   
https://github.com/adoroszlai/ozone/actions/runs/14702995761/job/41256275097#step:13:5932


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to