aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/installer/library_installer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/installer/library_installer.rs')
-rw-r--r--crates/shirabe/src/installer/library_installer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe/src/installer/library_installer.rs b/crates/shirabe/src/installer/library_installer.rs
index c1fedef..b4b2d20 100644
--- a/crates/shirabe/src/installer/library_installer.rs
+++ b/crates/shirabe/src/installer/library_installer.rs
@@ -322,7 +322,7 @@ impl InstallerInterface for LibraryInstaller {
self.binary_installer
.install_binaries(package.clone(), &install_path, true);
if !repo.has_package(package.clone()) {
- repo.add_package(package.clone());
+ repo.add_package(PackageInterfaceHandle::dup(&package));
}
Ok(None)
@@ -353,7 +353,7 @@ impl InstallerInterface for LibraryInstaller {
.install_binaries(target.clone(), &install_path, true);
repo.remove_package(initial.clone());
if !repo.has_package(target.clone()) {
- repo.add_package(target.clone());
+ repo.add_package(PackageInterfaceHandle::dup(&target));
}
Ok(None)