aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-27 05:22:22 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-27 05:22:22 +0000
commite83a6debcdc44f59e79def90f9190709e9fd9a5a (patch)
tree9ad20fa88ad15eb4227a49300b76eeac617215aa
parentf72a7935605fdaa87cf77f37e7f7e793b58aea63 (diff)
downloadpaludis-e83a6debcdc44f59e79def90f9190709e9fd9a5a.tar.gz
paludis-e83a6debcdc44f59e79def90f9190709e9fd9a5a.tar.xz
Make operator atoms work with --install
-rw-r--r--src/install.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/install.cc b/src/install.cc
index 6593507..73f3255 100644
--- a/src/install.cc
+++ b/src/install.cc
@@ -50,12 +50,8 @@ do_install()
/* we might have a dep atom, but we might just have a simple package name
* without a category. either should work. also allow full atoms, to make
* it easy to test things like '|| ( foo/bar foo/baz )'. */
- if (std::string::npos != q->find_first_of(" \t\n"))
+ if (std::string::npos != q->find('/'))
targets->add_child(p::DepParser::parse(*q));
- else if (std::string::npos == q->find('/'))
- targets->add_child(p::DepAtom::Pointer(new p::PackageDepAtom(
- env->package_database()->fetch_unique_qualified_package_name(
- p::PackageNamePart(*q)))));
else
targets->add_child(p::DepAtom::Pointer(new p::PackageDepAtom(*q)));
}