mirror of
https://codeberg.org/Toasterson/ips.git
synced 2026-04-10 21:30:41 +00:00
Simplify pkg5_import.rs by removing redundant directory creation logic; delegate to Transaction.commit() for handling.
This commit is contained in:
parent
9b271d81b5
commit
ea5eddbc6a
1 changed files with 3 additions and 4 deletions
|
|
@ -408,10 +408,9 @@ impl Pkg5Importer {
|
||||||
// Update the manifest in the transaction
|
// Update the manifest in the transaction
|
||||||
transaction.update_manifest(manifest);
|
transaction.update_manifest(manifest);
|
||||||
|
|
||||||
// Create the parent directories for the package name
|
// The Transaction.commit() method will handle creating necessary directories
|
||||||
let package_dir = dest_repo.path.join("pkg").join(publisher).join(pkg_name);
|
// and storing the manifest in the correct location, so we don't need to create
|
||||||
debug!("Creating package directory: {}", package_dir.display());
|
// package-specific directories here.
|
||||||
fs::create_dir_all(&package_dir)?;
|
|
||||||
|
|
||||||
// Commit the transaction
|
// Commit the transaction
|
||||||
transaction.commit()?;
|
transaction.commit()?;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue