aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/virtuals/registration.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-05-28 20:58:20 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-05-28 20:58:20 +0000
commitc52338eefbb54ab15490f65fa9207da2f96448b6 (patch)
tree4258c3fab4af9e4d2ec28a9f80690a9680af839f /paludis/repositories/virtuals/registration.cc
parentb8cc1f18652e2c39f4c7cad5e322e13f4686ed21 (diff)
downloadpaludis-c52338eefbb54ab15490f65fa9207da2f96448b6.tar.gz
paludis-c52338eefbb54ab15490f65fa9207da2f96448b6.tar.xz
Distribution definable defaults. Fixes: ticket:263
Diffstat (limited to 'paludis/repositories/virtuals/registration.cc')
-rw-r--r--paludis/repositories/virtuals/registration.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/paludis/repositories/virtuals/registration.cc b/paludis/repositories/virtuals/registration.cc
index 67d0f0e79..4012108e5 100644
--- a/paludis/repositories/virtuals/registration.cc
+++ b/paludis/repositories/virtuals/registration.cc
@@ -20,6 +20,7 @@
#include <paludis/repositories/repository_maker.hh>
#include <paludis/repositories/virtuals/installed_virtuals_repository.hh>
#include <paludis/repositories/virtuals/virtuals_repository.hh>
+#include <paludis/distribution.hh>
#include "config.h"
using namespace paludis;
@@ -33,8 +34,11 @@ extern "C"
void register_repositories(RepositoryMaker * maker)
{
- maker->register_maker("virtuals", &VirtualsRepository::make_virtuals_repository);
- maker->register_maker("installed_virtuals", &InstalledVirtualsRepository::make_installed_virtuals_repository);
+ if (DistributionData::get_instance()->default_distribution()->support_old_style_virtuals)
+ {
+ maker->register_maker("virtuals", &VirtualsRepository::make_virtuals_repository);
+ maker->register_maker("installed_virtuals", &InstalledVirtualsRepository::make_installed_virtuals_repository);
+ }
}
#endif