aboutsummaryrefslogtreecommitdiff
path: root/paludis/fs_merger.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/fs_merger.cc')
-rw-r--r--paludis/fs_merger.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/paludis/fs_merger.cc b/paludis/fs_merger.cc
index 58c032048..7d5d85aeb 100644
--- a/paludis/fs_merger.cc
+++ b/paludis/fs_merger.cc
@@ -978,3 +978,18 @@ FSMerger::on_sym_main(bool is_check, const FSEntry & src, const FSEntry & dst)
} while (false);
}
+FSEntry
+FSMerger::canonicalise_root_path(const FSEntry & f)
+{
+ return f.realpath();
+}
+
+void
+FSMerger::do_dir_recursive(bool is_check, const FSEntry & src, const FSEntry & dst)
+{
+ if ((! is_check) && (! dst.is_directory()))
+ throw MergerError("Destination directory '" + stringify(dst) + "' is not a directory");
+
+ Merger::do_dir_recursive(is_check, src, dst);
+}
+