aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Stephen P. Bennett <spb@exherbo.org> 2006-09-21 17:42:43 +0000
committerAvatar Stephen P. Bennett <spb@exherbo.org> 2006-09-21 17:42:43 +0000
commit0526997ce6ca6641240581ad9334ed179ee87d17 (patch)
tree6236fb486b424fe06cc65bd000fc8cdb800bc7f4
parent1422626b93078e7cce6e4363f44c4b3d6746c46a (diff)
downloadpaludis-0526997ce6ca6641240581ad9334ed179ee87d17.tar.gz
paludis-0526997ce6ca6641240581ad9334ed179ee87d17.tar.xz
Add file:// syncer
-rw-r--r--paludis/syncer.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/paludis/syncer.cc b/paludis/syncer.cc
index ac8772e..91424a9 100644
--- a/paludis/syncer.cc
+++ b/paludis/syncer.cc
@@ -56,6 +56,8 @@ namespace
_local(local),
_remote(remote)
{
+ if ((0 == _remote.compare(0, 4, "file", 0, 4)))
+ _remote = _remote.erase(0, 7);
}
public:
@@ -133,6 +135,13 @@ namespace
static const SyncerMaker::RegisterMaker register_rsync_syncer("rsync", &RsyncSyncer::make);
/**
+ * Register file:// protocol.
+ *
+ * \ingroup grpsyncer
+ */
+ static const SyncerMaker::RegisterMaker register_file_syncer("file", &RsyncSyncer::make);
+
+ /**
* Register svn:// protocol.
*
* \ingroup grpsyncer