Skip to content

Commit

Permalink
Merge branch 'branches/rudder/8.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
amousset committed Sep 28, 2024
2 parents c0b9b28 + 50f1370 commit 4baed9b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions relay/sources/rudder-package/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,13 @@ impl Database {
webapp: &mut Webapp,
) -> Result<()> {
info!("Installing {}", package);
let rpkg_path = if Path::new(&package).exists() && package.ends_with(".rpkg") {
package.to_string()
// Local install detection
let rpkg_path = if package.ends_with(".rpkg") || package.contains('/') {
if Path::new(&package).exists() {
package.to_string()
} else {
bail!("The {} plugin file does not exist", package)
}
} else {
let i = match index {
Some(i) => i,
Expand Down

0 comments on commit 4baed9b

Please sign in to comment.