Skip to content

Commit

Permalink
fix regexp escaping, closes #32
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Oct 16, 2024
1 parent 39cdab0 commit 95be0bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rspm
Type: Package
Title: 'RStudio' Package Manager
Version: 0.6.0
Version: 0.6.0.1
Authors@R: c(
person("Iñaki", "Ucar", email="[email protected]",
role=c("aut", "cph", "cre"), comment=c(ORCID="0000-0001-6403-5550")),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# rspm devel

- Fix regexp escaping in `apt-file` calls for Debian-like systems (#32).

# rspm 0.6.0

- Add support for Pop!_OS (#26 addressing #25).
Expand Down
3 changes: 2 additions & 1 deletion R/zzz_debian_base.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ debian_install_sysreqs <- function(libs) {
apt_file <- check_requirements("apt-file")

# get package names
patt <- gsub(".", "\\.", paste0("'(", paste(libs, collapse="|"), ")'"), fixed=TRUE)
patt <- paste0("'(", paste(libs, collapse="|"), ")'")
patt <- gsub("(\\.|\\+)", "\\\\\\1", patt)
system(apt_file, debian_options(), "update")
pkgs <- system_(apt_file, debian_options(), "-l search --regexp", patt)

Expand Down

0 comments on commit 95be0bc

Please sign in to comment.