X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/e79a920cadeaacdf871e1a10ef48d33c4d97cb02..3b2117a3ff0c74c8cf3dc27bbe9a3105428d03d5:/pinch.py diff --git a/pinch.py b/pinch.py index 2ba47b2..f95323f 100644 --- a/pinch.py +++ b/pinch.py @@ -644,7 +644,11 @@ def pinCommand(args: argparse.Namespace) -> None: def updateCommand(args: argparse.Namespace) -> None: v = Verification() exprs: Dict[str, str] = {} - search_paths: List[str] = [] + profile_manifest = os.path.join(args.profile, "manifest.nix") + search_paths: List[str] = [ + "-I", "pinch_profile=" + args.profile, + "-I", "pinch_profile_manifest=" + os.readlink(profile_manifest) + ] if os.path.exists(profile_manifest) else [] config = { section: read_pinned_config_section(section, conf) for section, conf in read_config_files(