mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
maintainers/scripts/update.nix: auto-detect attrPath
This commit is contained in:
parent
b351de0971
commit
c21a85c6a0
4 changed files with 32 additions and 32 deletions
|
@ -91,8 +91,8 @@ async def check_changes(package: Dict, worktree: str, update_info: str):
|
|||
if len(changes) == 1:
|
||||
# Dynamic data from updater take precedence over static data from passthru.updateScript.
|
||||
if 'attrPath' not in changes[0]:
|
||||
if 'attrPath' in package:
|
||||
changes[0]['attrPath'] = package['attrPath']
|
||||
# update.nix is always passing attrPath
|
||||
changes[0]['attrPath'] = package['attrPath']
|
||||
|
||||
if 'oldVersion' not in changes[0]:
|
||||
# update.nix is always passing oldVersion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue