Skip to content

Commit

Permalink
Fixes #24131: rudder package unpacks scripts.txz in the wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
Félix Dallidet committed Feb 2, 2024
1 parent c73c4e7 commit 0e16f85
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion relay/sources/rudder-package/src/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,10 @@ impl Rpkg {
}
}
// Extract package scripts
self.unpack_embedded_txz(PACKAGE_SCRIPTS_ARCHIVE, PathBuf::from(PACKAGES_FOLDER))?;
self.unpack_embedded_txz(
PACKAGE_SCRIPTS_ARCHIVE,
PathBuf::from(PACKAGES_FOLDER).join(self.metadata.name.clone()),
)?;
// Run preinst if any
let arg = if is_upgrade {
PackageScriptArg::Upgrade
Expand Down

0 comments on commit 0e16f85

Please sign in to comment.