Skip to content
Snippets Groups Projects
  • Shivaram Venkataraman's avatar
    ae853e8f
    [MINOR] Only rename SparkR tar.gz if names mismatch · ae853e8f
    Shivaram Venkataraman authored
    
    ## What changes were proposed in this pull request?
    
    For release builds the R_PACKAGE_VERSION and VERSION are the same (e.g., 2.1.0). Thus `cp` throws an error which causes the build to fail.
    
    ## How was this patch tested?
    
    Manually by executing the following script
    ```
    set -o pipefail
    set -e
    set -x
    
    touch a
    
    R_PACKAGE_VERSION=2.1.0
    VERSION=2.1.0
    
    if [ "$R_PACKAGE_VERSION" != "$VERSION" ]; then
      cp a a
    fi
    ```
    
    Author: Shivaram Venkataraman <shivaram@cs.berkeley.edu>
    
    Closes #16299 from shivaram/sparkr-cp-fix.
    
    (cherry picked from commit 9634018c)
    Signed-off-by: default avatarReynold Xin <rxin@databricks.com>
    ae853e8f
    History
    [MINOR] Only rename SparkR tar.gz if names mismatch
    Shivaram Venkataraman authored
    
    ## What changes were proposed in this pull request?
    
    For release builds the R_PACKAGE_VERSION and VERSION are the same (e.g., 2.1.0). Thus `cp` throws an error which causes the build to fail.
    
    ## How was this patch tested?
    
    Manually by executing the following script
    ```
    set -o pipefail
    set -e
    set -x
    
    touch a
    
    R_PACKAGE_VERSION=2.1.0
    VERSION=2.1.0
    
    if [ "$R_PACKAGE_VERSION" != "$VERSION" ]; then
      cp a a
    fi
    ```
    
    Author: Shivaram Venkataraman <shivaram@cs.berkeley.edu>
    
    Closes #16299 from shivaram/sparkr-cp-fix.
    
    (cherry picked from commit 9634018c)
    Signed-off-by: default avatarReynold Xin <rxin@databricks.com>