aboutsummaryrefslogtreecommitdiff
path: root/maintainers
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-09-20 01:15:58 +0200
committerJan Tojnar <jtojnar@gmail.com>2020-09-20 20:12:33 +0200
commit0c5ddf335836c521215ecc9bfbb07ba45256a7df (patch)
tree5e47d4482c577fffb62194aea74bac9d134a929b /maintainers
parentc1b05442ffd6cf3cf529cad469bebe8169b156e9 (diff)
maintainers/scripts/update.nix: run update script with UPDATE_NIX_ATTR_PATH
The environment variable will contain the attribute path the script is supposed to update.
Diffstat (limited to 'maintainers')
-rw-r--r--maintainers/scripts/update.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/maintainers/scripts/update.py b/maintainers/scripts/update.py
index 61387ee8cb33..74e36eaf80c6 100644
--- a/maintainers/scripts/update.py
+++ b/maintainers/scripts/update.py
@@ -39,7 +39,7 @@ async def run_update_script(merge_lock: asyncio.Lock, temp_dir: Optional[Tuple[s
eprint(f" - {package['name']}: UPDATING ...")
try:
- update_process = await check_subprocess(*package['updateScript'], stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE, cwd=worktree)
+ update_process = await check_subprocess('env', f"UPDATE_NIX_ATTR_PATH={package['attrPath']}", *package['updateScript'], stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE, cwd=worktree)
update_info = await update_process.stdout.read()
await merge_changes(merge_lock, package, update_info, temp_dir)