diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-10-07 12:11:00 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-10-07 12:11:00 +0200 |
commit | cfaad7168e7ac72d4b2024df2e093b86b45b70fc (patch) | |
tree | 8ed6321f3b9e151932145cd83b23d9a41f60d698 /src/nix/profile.cc | |
parent | c9ee634f75296be1bb123760251919213439eb49 (diff) |
Refactoring: Add allowPath() method
Diffstat (limited to 'src/nix/profile.cc')
-rw-r--r-- | src/nix/profile.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nix/profile.cc b/src/nix/profile.cc index c63ed9c88..96a20f673 100644 --- a/src/nix/profile.cc +++ b/src/nix/profile.cc @@ -98,10 +98,8 @@ struct ProfileManifest else if (pathExists(profile + "/manifest.nix")) { // FIXME: needed because of pure mode; ugly. - if (state.allowedPaths) { - state.allowedPaths->insert(state.store->followLinksToStore(profile)); - state.allowedPaths->insert(state.store->followLinksToStore(profile + "/manifest.nix")); - } + state.allowPath(state.store->followLinksToStore(profile)); + state.allowPath(state.store->followLinksToStore(profile + "/manifest.nix")); auto drvInfos = queryInstalled(state, state.store->followLinksToStore(profile)); |