aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Danny van Dyk <dvandyk@exherbo.org> 2007-04-14 19:52:43 +0000
committerAvatar Danny van Dyk <dvandyk@exherbo.org> 2007-04-14 19:52:43 +0000
commitcd0aba72c7ec8e12841272f4d54d6fd02c9f8b16 (patch)
treeef3e3099ace305287804a88bb3d02125dc9f4fbe
parentc48159028c4952300455b60afd3ec3196f5e1eb2 (diff)
downloadpaludis-cd0aba72c7ec8e12841272f4d54d6fd02c9f8b16.tar.gz
paludis-cd0aba72c7ec8e12841272f4d54d6fd02c9f8b16.tar.xz
Fixed finding of packages for versions with keywords that have a prefixed '-'.
-rw-r--r--paludis/tasks/find_unused_packages_task.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/tasks/find_unused_packages_task.cc b/paludis/tasks/find_unused_packages_task.cc
index f63b793..de4d28d 100644
--- a/paludis/tasks/find_unused_packages_task.cc
+++ b/paludis/tasks/find_unused_packages_task.cc
@@ -73,6 +73,9 @@ FindUnusedPackagesTask::execute(const QualifiedPackageName & package)
k != k_end ; ++k)
{
std::string stable_keyword(stringify(*k));
+ if (stable_keyword[0] == '-')
+ continue;
+
if (stable_keyword[0] == '~')
stable_keyword.erase(0, 1);