aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-30 08:41:31 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-30 08:41:31 +0000
commite9e18bcecc33e96c15efde540e804eb7d1ef4ced (patch)
tree145053f1ee307dcbd6bcbbc1e3cf5b774d73152d
parentab8a4ea58b93cfc4193e5d9d338918e190cc02c6 (diff)
downloadpaludis-e9e18bcecc33e96c15efde540e804eb7d1ef4ced.tar.gz
paludis-e9e18bcecc33e96c15efde540e804eb7d1ef4ced.tar.xz
Make the local directory when syncing via rsync
-rw-r--r--paludis/syncer.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/paludis/syncer.cc b/paludis/syncer.cc
index 7f63bac..61b7c64 100644
--- a/paludis/syncer.cc
+++ b/paludis/syncer.cc
@@ -19,6 +19,7 @@
*/
#include "syncer.hh"
+#include <paludis/util/fs_entry.hh>
#include <paludis/util/system.hh>
/** \file
@@ -119,11 +120,12 @@ RsyncSyncer::sync(const SyncOptions & opts) const
Context context("When performing sync via rsync from '" + _remote + "' to '"
+ _local + "':");
+ FSEntry(_local).mkdir();
+
std::string exclude;
if (! opts.get<so_excludefrom>().empty())
exclude = "--exclude-from " + std::string(opts.get<so_excludefrom>()) + " ";
-
std::string cmd("rsync --recursive --links --safe-links --perms --times "
"--compress --force --whole-file --delete --delete-after --stats "
"--timeout=180 --exclude=/distfiles --exclude=/packages --progress "