aboutsummaryrefslogtreecommitdiff
path: root/paludis/match_package.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/match_package.cc')
-rw-r--r--paludis/match_package.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/paludis/match_package.cc b/paludis/match_package.cc
index d3d629269..9509d931b 100644
--- a/paludis/match_package.cc
+++ b/paludis/match_package.cc
@@ -124,7 +124,7 @@ paludis::match_package_with_maybe_changes(
}
if (spec.in_repository_ptr())
- if (*spec.in_repository_ptr() != id->repository()->name())
+ if (*spec.in_repository_ptr() != id->repository_name())
return false;
if (spec.from_repository_ptr())
@@ -139,9 +139,10 @@ paludis::match_package_with_maybe_changes(
if (spec.installed_at_path_ptr())
{
- if (! id->repository()->installed_root_key())
+ auto repo(env.package_database()->fetch_repository(id->repository_name()));
+ if (! repo->installed_root_key())
return false;
- if (id->repository()->installed_root_key()->value() != *spec.installed_at_path_ptr())
+ if (repo->installed_root_key()->value() != *spec.installed_at_path_ptr())
return false;
}