aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-02 18:04:32 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-02 18:04:32 +0000
commit7b1c3ef22c4daf7378764433361d702bb6238d4d (patch)
tree28a56253af7dfe20e6ac74cbcc4346b5bfe134cc
parent872d0977cd9734c9637b9d7ea21433a714af7b7d (diff)
downloadpaludis-7b1c3ef22c4daf7378764433361d702bb6238d4d.tar.gz
paludis-7b1c3ef22c4daf7378764433361d702bb6238d4d.tar.xz
Faster code
-rw-r--r--paludis/repositories/gentoo/portage_repository.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/paludis/repositories/gentoo/portage_repository.cc b/paludis/repositories/gentoo/portage_repository.cc
index 12496ba..0d13734 100644
--- a/paludis/repositories/gentoo/portage_repository.cc
+++ b/paludis/repositories/gentoo/portage_repository.cc
@@ -1206,14 +1206,9 @@ PortageRepository::set_profile(const ProfilesIterator & iter)
_imp->profile_ptr = iter->profile;
- try
- {
+ if (_imp->params.environment->package_database()->has_repository_named(RepositoryName("virtuals")))
_imp->params.environment->package_database()->fetch_repository(
RepositoryName("virtuals"))->invalidate();
- }
- catch (const NoSuchRepositoryError &)
- {
- }
}
void