Skip to content

Commit

Permalink
[unit] to overwrite it is enough to copy
Browse files Browse the repository at this point in the history
Overwrite option means existing data should be overwritten even if
existing data is newer. If there are some other files they should be
untouched.

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
  • Loading branch information
Denis Zalevskiy committed Aug 24, 2014
1 parent c07f37e commit fb24d93
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/unit.cpp
Expand Up @@ -376,7 +376,6 @@ void Operation::from_vault(QString const &data_type
if (overwrite) {
options["force"] = true;
fn = [src, dst, dst_dir, &options]() {
os::rmtree(dst);
os::cptree(src, dst_dir, std::move(options));
};
} else {
Expand Down

0 comments on commit fb24d93

Please sign in to comment.