aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/metadata_xml.cc
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-11-15 22:31:48 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-11-15 22:32:47 +0000
commit0007fc154be85f50a3d0f653cee66632b59e8652 (patch)
treeb5d5dde988a81ea1ccbd71f7277335ba2ecaf619 /paludis/repositories/e/metadata_xml.cc
parent975390470d5f3635b1e2a4885af390cd3f405d17 (diff)
downloadpaludis-0007fc154be85f50a3d0f653cee66632b59e8652.tar.gz
paludis-0007fc154be85f50a3d0f653cee66632b59e8652.tar.xz
Don't segfault if one but not both of GLSAs and metadata.xml is enabled.
Diffstat (limited to 'paludis/repositories/e/metadata_xml.cc')
-rw-r--r--paludis/repositories/e/metadata_xml.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/repositories/e/metadata_xml.cc b/paludis/repositories/e/metadata_xml.cc
index f69d4a147..fd6005621 100644
--- a/paludis/repositories/e/metadata_xml.cc
+++ b/paludis/repositories/e/metadata_xml.cc
@@ -73,7 +73,7 @@ MetadataXMLPool::metadata_if_exists(const FSEntry & f) const
{
try
{
- if (XMLThingsHandle::get_instance()->available())
+ if (XMLThingsHandle::get_instance()->create_metadata_xml_from_xml_file())
metadata_xml = XMLThingsHandle::get_instance()->create_metadata_xml_from_xml_file()(f);
}
catch (const Exception & e)