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(
'--file',
'<nix/unpack-channel.nix>',
'--install',
+ '--remove-all',
] + search_paths + ['--from-expression'] + [
exprs[name] % name for name in sorted(exprs.keys())]
if args.dry_run: