nealrichardson commented on code in PR #12980:
URL: https://github.com/apache/arrow/pull/12980#discussion_r867028983


##########
ci/docker/linux-apt-lint.dockerfile:
##########
@@ -49,7 +49,7 @@ RUN wget -qO- 
https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc |
     # R 3.4 is available without the suffix but only for trusty and xenial
     # TODO: make sure OS version and R version are valid together and 
conditionally set repo suffix
     # This is a hack to turn 3.6 into 35, and 4.0/4.1 into 40:
-    add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu 
'$(lsb_release -cs)'-cran'$(echo "${r}" | tr -d . | tr 6 5 | tr 1 0)'/' && \
+    add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu 
'$(lsb_release -cs)'-cran'$(echo "${r}" | tr -d . | tr 6 5 | tr 1-2 0)'/' && \

Review Comment:
   ```suggestion
       add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu 
'$(lsb_release -cs)'-cran40/' && \
   ```



-- 
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]

Reply via email to