aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/virtuals/virtuals_repository.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-13 21:19:35 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-13 21:19:35 +0000
commit402c186ce65b06a525ca6b586a5f11da2fef5faf (patch)
treecf49efa00896abbdb9894e76d8f27e16e41dc9cf /paludis/repositories/virtuals/virtuals_repository.cc
parentd1856e25dbca494b9ceb69fa268c8ae11ecb931c (diff)
downloadpaludis-402c186ce65b06a525ca6b586a5f11da2fef5faf.tar.gz
paludis-402c186ce65b06a525ca6b586a5f11da2fef5faf.tar.xz
EAPI-aware dep parser. Fixes: ticket:120
Diffstat (limited to 'paludis/repositories/virtuals/virtuals_repository.cc')
-rw-r--r--paludis/repositories/virtuals/virtuals_repository.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/paludis/repositories/virtuals/virtuals_repository.cc b/paludis/repositories/virtuals/virtuals_repository.cc
index 46c5d2770..f4b622ae5 100644
--- a/paludis/repositories/virtuals/virtuals_repository.cc
+++ b/paludis/repositories/virtuals/virtuals_repository.cc
@@ -128,7 +128,8 @@ VirtualsRepository::need_names() const
for (RepositoryProvidesInterface::ProvidesCollection::Iterator p(provides->begin()),
p_end(provides->end()) ; p != p_end ; ++p)
_imp->names.push_back(std::make_pair(p->virtual_name, std::tr1::shared_ptr<const PackageDepSpec>(
- new PackageDepSpec(stringify(p->provided_by_name)))));
+ new PackageDepSpec(
+ std::tr1::shared_ptr<QualifiedPackageName>(new QualifiedPackageName(p->provided_by_name))))));
}
std::sort(_imp->names.begin(), _imp->names.end(), NamesNameComparator());
@@ -254,7 +255,9 @@ VirtualsRepository::do_version_metadata(
return vif->virtual_package_version_metadata(
RepositoryVirtualsEntry::create()
.virtual_name(p.first->virtual_name)
- .provided_by_spec(std::tr1::shared_ptr<PackageDepSpec>(new PackageDepSpec(p.first->provided_by_name))), v);
+ .provided_by_spec(std::tr1::shared_ptr<PackageDepSpec>(new PackageDepSpec(
+ std::tr1::shared_ptr<QualifiedPackageName>(new QualifiedPackageName(p.first->provided_by_name))))),
+ v);
}
bool