aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-02 14:20:12 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-02 14:20:12 +0000
commitef586a170094e6a30b5f96fb42ff03a6d63f650a (patch)
treecaa9f796071e5b7aac3cf95c0ab4895f7696fac4
parent1e87d23e31846e5bd755257a6b709d16415700dc (diff)
downloadpaludis-ef586a170094e6a30b5f96fb42ff03a6d63f650a.tar.gz
paludis-ef586a170094e6a30b5f96fb42ff03a6d63f650a.tar.xz
really fix
-rw-r--r--paludis/environments/paludis/paludis_config.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/paludis/environments/paludis/paludis_config.cc b/paludis/environments/paludis/paludis_config.cc
index 8eb5efc..d4fa184 100644
--- a/paludis/environments/paludis/paludis_config.cc
+++ b/paludis/environments/paludis/paludis_config.cc
@@ -300,6 +300,18 @@ PaludisConfig::PaludisConfig(PaludisEnvironment * const e, const std::string & s
/* repositories */
{
+ /* add virtuals repositories */
+
+ std::tr1::shared_ptr<AssociativeCollection<std::string, std::string> > iv_keys(
+ new AssociativeCollection<std::string, std::string>::Concrete);
+ iv_keys->insert("root", root_prefix.empty() ? "/" : root_prefix);
+ _imp->repos.push_back(RepositoryConfigEntry("installed_virtuals", -1, iv_keys));
+
+ _imp->repos.push_back(RepositoryConfigEntry("virtuals", -2,
+ std::tr1::shared_ptr<AssociativeCollection<std::string, std::string> >()));
+
+ /* add normal repositories */
+
if ((local_config_dir / "repository_defaults.conf").exists())
{
KeyValueConfigFile defaults_file(local_config_dir / "repository_defaults.conf");
@@ -369,18 +381,6 @@ PaludisConfig::PaludisConfig(PaludisEnvironment * const e, const std::string & s
if (_imp->repos.empty())
throw PaludisConfigError("No repositories specified");
-
- /* add virtuals repositories */
-
- std::tr1::shared_ptr<AssociativeCollection<std::string, std::string> > iv_keys(
- new AssociativeCollection<std::string, std::string>::Concrete);
- iv_keys->insert("root", root_prefix.empty() ? "/" : root_prefix);
- _imp->repos.push_back(RepositoryConfigEntry("installed_virtuals", -1, iv_keys));
-
- _imp->repos.push_back(RepositoryConfigEntry("virtuals", -2,
- std::tr1::shared_ptr<AssociativeCollection<std::string, std::string> >()));
-
- _imp->repos.sort();
}
/* keywords */