upstream now does Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>epel9
parent
408dd86090
commit
9f4f39259b
@ -1,11 +0,0 @@
|
||||
--- a/src/depot.rs
|
||||
+++ b/src/depot.rs
|
||||
@@ -104,7 +104,7 @@ impl Depot {
|
||||
)
|
||||
.context(format!("failed to create directory {:?}", dst))?;
|
||||
|
||||
- copy_dir::copy_dir(&src, &dst).context(format!("failed to copy directory {:?} to {:?}", src, dst))?;
|
||||
+ std::process::Command::new("cp").arg("-pr").arg(&src).arg(&dst).spawn().context(format!("failed to copy directory {:?} to {:?}", src, dst))?;
|
||||
Ok(())
|
||||
}
|
||||
|
@ -0,0 +1,13 @@
|
||||
--- a/src/depot.rs
|
||||
+++ b/src/depot.rs
|
||||
@@ -104,7 +104,9 @@ impl Depot {
|
||||
)
|
||||
.context(format!("failed to create directory {:?}", dst))?;
|
||||
|
||||
- copy_dir::copy_dir(&src, &dst).context(format!("failed to copy directory {:?} to {:?}", src, dst))?;
|
||||
+ let mut options = fs_extra::dir::CopyOptions::new();
|
||||
+ options.copy_inside = true;
|
||||
+ fs_extra::dir::copy(src, dst, &options).context(format!("failed to copy directory {:?} to {:?}", src, dst))?;
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in new issue