aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-10 16:31:21 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-10 16:31:21 +0000
commitfd4bbaa6d4125b7f24b33c93cce0bfe450ca53d8 (patch)
tree06c98fc2dd7abe33ff4aa0ba19463c673f32c574
parentbe067ed19d0e19325b6d308a726f1949131cb79d (diff)
downloadpaludis-fd4bbaa6d4125b7f24b33c93cce0bfe450ca53d8.tar.gz
paludis-fd4bbaa6d4125b7f24b33c93cce0bfe450ca53d8.tar.xz
Don't try to populate a repo that doesn't exist
-rw-r--r--paludis/repositories/unwritten/unwritten_repository_store.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/paludis/repositories/unwritten/unwritten_repository_store.cc b/paludis/repositories/unwritten/unwritten_repository_store.cc
index ed93a6e..dd6912f 100644
--- a/paludis/repositories/unwritten/unwritten_repository_store.cc
+++ b/paludis/repositories/unwritten/unwritten_repository_store.cc
@@ -93,7 +93,8 @@ UnwrittenRepositoryStore::UnwrittenRepositoryStore(
Log::get_instance()->message("unwritten_repository.unknown_role", ll_warning, lc_context)
<< "Role '" << info.role() << "' unknown for '" << f << "'";
- _populate(env, f);
+ if (f.stat().exists())
+ _populate(env, f);
}
UnwrittenRepositoryStore::~UnwrittenRepositoryStore()