aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/fake
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-07-24 13:34:29 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-07-24 13:34:29 +0000
commit425ac90fbf4cb4a596be248bfe438ef10ec21588 (patch)
tree184ee1022a33146e1c917db5bd6433c789c4631b /paludis/repositories/fake
parent22ac78d1a4cf8e59f2c174579836357c04972aea (diff)
downloadpaludis-425ac90fbf4cb4a596be248bfe438ef10ec21588.tar.gz
paludis-425ac90fbf4cb4a596be248bfe438ef10ec21588.tar.xz
Make a FetchAction. Kill builtin_fetch. Support SRC_URI labels. Support arrows in SRC_URI. Fixes: ticket:260. Fixes: ticket:257
Diffstat (limited to 'paludis/repositories/fake')
-rw-r--r--paludis/repositories/fake/fake_installed_repository.cc4
-rw-r--r--paludis/repositories/fake/fake_package_id.cc19
-rw-r--r--paludis/repositories/fake/fake_repository.cc4
3 files changed, 21 insertions, 6 deletions
diff --git a/paludis/repositories/fake/fake_installed_repository.cc b/paludis/repositories/fake/fake_installed_repository.cc
index 495b4c048..1147d9057 100644
--- a/paludis/repositories/fake/fake_installed_repository.cc
+++ b/paludis/repositories/fake/fake_installed_repository.cc
@@ -153,6 +153,10 @@ namespace
{
}
+ void visit(const SupportsActionTest<FetchAction> &)
+ {
+ }
+
void visit(const SupportsActionTest<UninstallAction> &)
{
}
diff --git a/paludis/repositories/fake/fake_package_id.cc b/paludis/repositories/fake/fake_package_id.cc
index 6e07fe822..88ea77347 100644
--- a/paludis/repositories/fake/fake_package_id.cc
+++ b/paludis/repositories/fake/fake_package_id.cc
@@ -284,22 +284,22 @@ namespace paludis
keywords(new FakeMetadataKeywordSetKey("KEYWORDS", "Keywords", "test", mkt_normal)),
iuse(new FakeMetadataIUseSetKey("IUSE", "Used USE flags", "", iuse_pm_permissive, mkt_normal)),
license(new FakeMetadataSpecTreeKey<LicenseSpecTree>("LICENSE", "Licenses",
- "", tr1::bind(&erepository::DepParser::parse_license, _1,
+ "", tr1::bind(&erepository::parse_license, _1,
*erepository::EAPIData::get_instance()->eapi_from_string("0")), mkt_normal)),
provide(new FakeMetadataSpecTreeKey<ProvideSpecTree>("PROVIDE", "Provided packages",
- "", tr1::bind(&erepository::DepParser::parse_provide, _1,
+ "", tr1::bind(&erepository::parse_provide, _1,
*erepository::EAPIData::get_instance()->eapi_from_string("0")), mkt_normal)),
build_dependencies(new FakeMetadataSpecTreeKey<DependencySpecTree>("DEPEND", "Build dependencies",
- "", tr1::bind(&erepository::DepParser::parse_depend, _1,
+ "", tr1::bind(&erepository::parse_depend, _1,
*erepository::EAPIData::get_instance()->eapi_from_string("0")), mkt_dependencies)),
run_dependencies(new FakeMetadataSpecTreeKey<DependencySpecTree>("RDEPEND", "Run dependencies",
- "", tr1::bind(&erepository::DepParser::parse_depend, _1,
+ "", tr1::bind(&erepository::parse_depend, _1,
*erepository::EAPIData::get_instance()->eapi_from_string("0")), mkt_dependencies)),
post_dependencies(new FakeMetadataSpecTreeKey<DependencySpecTree>("PDEPEND", "Post dependencies",
- "", tr1::bind(&erepository::DepParser::parse_depend, _1,
+ "", tr1::bind(&erepository::parse_depend, _1,
*erepository::EAPIData::get_instance()->eapi_from_string("0")), mkt_dependencies)),
suggested_dependencies(new FakeMetadataSpecTreeKey<DependencySpecTree>("SDEPEND", "Suggested dependencies",
- "", tr1::bind(&erepository::DepParser::parse_depend, _1,
+ "", tr1::bind(&erepository::parse_depend, _1,
*erepository::EAPIData::get_instance()->eapi_from_string("0")), mkt_dependencies)),
has_masks(false)
{
@@ -709,6 +709,13 @@ namespace
throw UnsupportedActionError(*id, a);
}
+ void visit(const FetchAction & a)
+ {
+ SupportsActionTest<FetchAction> t;
+ if (! id->repository()->some_ids_might_support_action(t))
+ throw UnsupportedActionError(*id, a);
+ }
+
void visit(const ConfigAction & a)
{
SupportsActionTest<ConfigAction> t;
diff --git a/paludis/repositories/fake/fake_repository.cc b/paludis/repositories/fake/fake_repository.cc
index a660794eb..abc7c8386 100644
--- a/paludis/repositories/fake/fake_repository.cc
+++ b/paludis/repositories/fake/fake_repository.cc
@@ -132,6 +132,10 @@ namespace
{
}
+ void visit(const SupportsActionTest<FetchAction> &)
+ {
+ }
+
void visit(const SupportsActionTest<UninstallAction> &)
{
}