From ea5eddbc6afa310626f55368a1b00f6a5a06fcc9 Mon Sep 17 00:00:00 2001 From: Till Wegmueller Date: Sun, 27 Jul 2025 12:05:22 +0200 Subject: [PATCH] Simplify `pkg5_import.rs` by removing redundant directory creation logic; delegate to `Transaction.commit()` for handling. --- pkg6repo/src/pkg5_import.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg6repo/src/pkg5_import.rs b/pkg6repo/src/pkg5_import.rs index d6e7372..23e9b6f 100644 --- a/pkg6repo/src/pkg5_import.rs +++ b/pkg6repo/src/pkg5_import.rs @@ -408,10 +408,9 @@ impl Pkg5Importer { // Update the manifest in the transaction transaction.update_manifest(manifest); - // Create the parent directories for the package name - let package_dir = dest_repo.path.join("pkg").join(publisher).join(pkg_name); - debug!("Creating package directory: {}", package_dir.display()); - fs::create_dir_all(&package_dir)?; + // The Transaction.commit() method will handle creating necessary directories + // and storing the manifest in the correct location, so we don't need to create + // package-specific directories here. // Commit the transaction transaction.commit()?;