aboutsummaryrefslogtreecommitdiff
path: root/paludis/environments/test/test_environment.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/environments/test/test_environment.cc')
-rw-r--r--paludis/environments/test/test_environment.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/paludis/environments/test/test_environment.cc b/paludis/environments/test/test_environment.cc
index bca0957..18e4fab 100644
--- a/paludis/environments/test/test_environment.cc
+++ b/paludis/environments/test/test_environment.cc
@@ -57,8 +57,11 @@ TestEnvironment::~TestEnvironment()
}
bool
-TestEnvironment::query_use(const UseFlagName & u, const PackageID &) const
+TestEnvironment::query_use(const UseFlagName & u, const PackageID & p) const
{
+ if (UseFlagName("pkgname") == u)
+ return PackageNamePart("enabled") == p.name().package;
+
return (std::string::npos != u.data().find("enabled"));
}