jonkeane commented on a change in pull request #12395:
URL: https://github.com/apache/arrow/pull/12395#discussion_r804125452



##########
File path: ci/scripts/r_docker_configure.sh
##########
@@ -30,6 +30,17 @@ fi
 # Ensure parallel compilation of C/C++ code
 echo "MAKEFLAGS=-j$(${R_BIN} -s -e 'cat(parallel::detectCores())')" >> $(R 
RHOME)/etc/Renviron.site
 
+# Figure out what package manager we have
+if [ "`which dnf`" ]; then
+  PACKAGE_MANAGER=dnf
+elif [ "`which yum`" ]; then
+  PACKAGE_MANAGER=yum
+elif [ "`which zypper`" ]; then
+  PACKAGE_MANAGER=zypper
+else
+  PACKAGE_MANAGER=apt-get

Review comment:
       Should we move the `apt-get update` up here from down in the `if` below? 
   
   I suspect we don't have a test that has `ARROW_S3 == OFF` and `ARROW_R_DEV 
== FALSE`, but if we did the update wouldn't have happened there (line 66) so 
line 83 won't have the update yet




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