aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/ebuild.cc')
-rw-r--r--paludis/repositories/e/ebuild.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/paludis/repositories/e/ebuild.cc b/paludis/repositories/e/ebuild.cc
index 4e5ea3889..3bcda1e28 100644
--- a/paludis/repositories/e/ebuild.cc
+++ b/paludis/repositories/e/ebuild.cc
@@ -614,7 +614,11 @@ EbuildMetadataCommand::load(const std::shared_ptr<const EbuildID> & id)
id->load_license(m.license(), get(keys, m.license()->name()));
if (! m.provide()->name().empty())
- id->load_provide(m.provide(), get(keys, m.provide()->name()));
+ {
+ std::string value(get(keys, m.provide()->name()));
+ if (! value.empty())
+ id->load_provide(m.provide(), get(keys, m.provide()->name()));
+ }
if (! m.iuse()->name().empty())
id->load_iuse(m.iuse(), get(keys, m.iuse()->name()));