aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-19 23:42:28 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-19 23:52:27 +0000
commit8b04af73bee62cb97de96f2e79dc5835e0ac3a4c (patch)
tree70ff8b7aecdd1a00c49567b41d1f9d6c8d0d52b0 /paludis/repositories/e
parente19d5e245fd7e0dfcfd97cc1f31151f59cadec31 (diff)
downloadpaludis-8b04af73bee62cb97de96f2e79dc5835e0ac3a4c.tar.gz
paludis-8b04af73bee62cb97de96f2e79dc5835e0ac3a4c.tar.xz
Let syncing specify a revision
Diffstat (limited to 'paludis/repositories/e')
-rw-r--r--paludis/repositories/e/e_installed_repository.cc2
-rw-r--r--paludis/repositories/e/e_installed_repository.hh1
-rw-r--r--paludis/repositories/e/e_repository.cc5
-rw-r--r--paludis/repositories/e/e_repository.hh5
4 files changed, 10 insertions, 3 deletions
diff --git a/paludis/repositories/e/e_installed_repository.cc b/paludis/repositories/e/e_installed_repository.cc
index 06aebc666..2c670d198 100644
--- a/paludis/repositories/e/e_installed_repository.cc
+++ b/paludis/repositories/e/e_installed_repository.cc
@@ -398,7 +398,7 @@ EInstalledRepository::populate_sets() const
}
bool
-EInstalledRepository::sync(const std::string &, const std::shared_ptr<OutputManager> &) const
+EInstalledRepository::sync(const std::string &, const std::string &, const std::shared_ptr<OutputManager> &) const
{
return false;
}
diff --git a/paludis/repositories/e/e_installed_repository.hh b/paludis/repositories/e/e_installed_repository.hh
index 3d076d7db..9aa18258a 100644
--- a/paludis/repositories/e/e_installed_repository.hh
+++ b/paludis/repositories/e/e_installed_repository.hh
@@ -90,6 +90,7 @@ namespace paludis
virtual bool sync(
const std::string &,
+ const std::string &,
const std::shared_ptr<OutputManager> &) const;
///\name For use by EInstalledRepositoryID
diff --git a/paludis/repositories/e/e_repository.cc b/paludis/repositories/e/e_repository.cc
index b5d502d4a..e23350883 100644
--- a/paludis/repositories/e/e_repository.cc
+++ b/paludis/repositories/e/e_repository.cc
@@ -697,6 +697,7 @@ ERepository::need_mirrors() const
bool
ERepository::sync(
const std::string & suffix,
+ const std::string & revision,
const std::shared_ptr<OutputManager> & output_manager) const
{
Context context("When syncing repository '" + stringify(name()) + "':");
@@ -720,8 +721,10 @@ ERepository::sync(
DefaultSyncer syncer(make_named_values<SyncerParams>(
n::environment() = _imp->params.environment(),
n::local() = stringify(_imp->params.location()),
- n::remote() = *s
+ n::remote() = *s,
+ n::revision() = revision
));
+
SyncOptions opts(make_named_values<SyncOptions>(
n::filter_file() = _imp->layout->sync_filter_file(),
n::options() = sync_options,
diff --git a/paludis/repositories/e/e_repository.hh b/paludis/repositories/e/e_repository.hh
index e800f8473..3fc9c5e77 100644
--- a/paludis/repositories/e/e_repository.hh
+++ b/paludis/repositories/e/e_repository.hh
@@ -105,7 +105,10 @@ namespace paludis
/* RepositorySyncableInterface */
- virtual bool sync(const std::string &, const std::shared_ptr<OutputManager> &) const;
+ virtual bool sync(
+ const std::string &,
+ const std::string &,
+ const std::shared_ptr<OutputManager> &) const;
/* RepositoryEnvironmentVariableInterface */