File tree 1 file changed +3
-4
lines changed 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -83,15 +83,14 @@ impl Combiner {
83
83
return Err ( io:: Error :: new ( io:: ErrorKind :: Other , msg) ) ;
84
84
}
85
85
86
- // Copy components to new combined installer
86
+ // Move components to the new combined installer
87
87
let mut pkg_components = String :: new ( ) ;
88
88
fs:: File :: open ( pkg_dir. join ( "components" ) ) ?
89
89
. read_to_string ( & mut pkg_components) ?;
90
90
for component in pkg_components. split_whitespace ( ) {
91
- // All we need to do is copy the component directory
91
+ // All we need to do is move the component directory
92
92
let component_dir = package_dir. join ( & component) ;
93
- fs:: create_dir ( & component_dir) ?;
94
- copy_recursive ( & pkg_dir. join ( & component) , & component_dir) ?;
93
+ fs:: rename ( & pkg_dir. join ( & component) , & component_dir) ?;
95
94
96
95
// Merge the component name
97
96
writeln ! ( & components, "{}" , component) ?;
You can’t perform that action at this time.
0 commit comments