util/run: ensure env variable PWD is always correct
Some scripts may rely on $PWD to get current working directory. Since some commands are called after directory is changed by os.chdir(), this variable needs to be manually updated to reflect that change.
- The other option would be to call
subprocess.Popen(cwd=X)
instead, but I saw you use thewith cd(...):
construct for other stuff as well, so I just did a minimal fix. - This fixes Debian 9 packaging for knot-resolver (which relies on $PWD)
- It'd be great to get a pip release, since this blocks knot/knot-resolver!1178 (merged)
- integration test pipeline: https://gitlab.nic.cz/packaging/apkg/-/pipelines/83296