Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Re-submission of rstudio fix for move to posit.io #676

Merged
merged 2 commits into from
Nov 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions 01-main/packages/rstudio
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
DEFVER=1
get_website "https://www.rstudio.com/products/rstudio/download/"
get_website "https://posit.co/download/rstudio-desktop/"
if [ "${ACTION}" != "prettylist" ]; then
case "${UPSTREAM_CODENAME}" in
focal)
URL="$(grep -e "bionic/.*amd64.deb" "${CACHE_FILE}" | grep -v "tar.gz" | head -n1 | cut -d'"' -f2)"
focal|buster|bullseye)
URL="$( grep -e "bionic/.*amd64.deb" "${CACHE_FILE}" | grep -v "tar.gz" | head -n1 | cut -d'"' -f4)"
;;
*)
URL="$(grep -e "jammy/.*amd64.deb" "${CACHE_FILE}" | grep -v "tar.gz" | head -n1 | cut -d'"' -f2)"
URL="$( grep -e "jammy/.*amd64.deb" "${CACHE_FILE}" | grep -v "tar.gz" | head -n1 | cut -d'"' -f4)"
;;
esac
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'-' -f2-3 | tr - +)"
fi
PRETTY_NAME="RStudio"
WEBSITE="https://www.rstudio.com/"
#https://posit.co/products/open-source/rstudio/
SUMMARY="Professional software for data science teams."
5 changes: 3 additions & 2 deletions 01-main/packages/rstudio-server
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
DEFVER=1
get_website "https://posit.co/download/rstudio-server/"
if [ "${ACTION}" != "prettylist" ]; then
case "${UPSTREAM_CODENAME}" in
focal|buster|bullseye)
URL="$(curl -s "https://posit.co/download/rstudio-server/" | grep -o -E "wget.*bionic.*amd64\.deb"| cut -d' ' -f2)"
URL="$( grep -o -E "wget.*bionic.*amd64\.deb" "${CACHE_FILE}" | cut -d' ' -f2)"
;;
*)
URL="$(curl -s "https://posit.co/download/rstudio-server/"| grep -o -E "wget.*jammy.*amd64\.deb"| cut -d' ' -f2)"
URL="$( grep -o -E "wget.*jammy.*amd64\.deb" "${CACHE_FILE}" | cut -d' ' -f2)"
;;
esac
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'-' -f2-3 | tr - +)"
Expand Down