Commit 3a6925fa authored by Lin Jian's avatar Lin Jian
Browse files

emacs: do not change the current env in update-from-overlay.py

parent 40edcab2
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -199,12 +199,14 @@ def check_fileset(
            "-A",
            f"emacsPackages.{nix_attr}",
        ]
        environment = os.environ
        environment["NIXPKGS_ALLOW_BROKEN"] = "1"
        env = os.environ.copy()
        env["NIXPKGS_ALLOW_BROKEN"] = "1"

        logging.info(f"Testing {nix_attr}")
        # TODO: capture the output (to put it in the logfile).
        result = subprocess.run(cmdline, capture_output=True, text=True, check=True)
        result = subprocess.run(
            cmdline, capture_output=True, text=True, check=True, env=env
        )
        logging.debug(f"""
Shell Command: {result.args}
Output: