Merge pull request #74264 from talyz/fix-common-updater-scripts
common-updater-scripts: Fix breakage
This commit is contained in:
commit
528647949a
@ -93,7 +93,7 @@ if [ -z "$oldUrl" ]; then
|
||||
fi
|
||||
|
||||
drvName=$(nix-instantiate $systemArg --eval -E "with import ./. {}; lib.getName $attr" | tr -d '"')
|
||||
oldVersion=$(nix-instantiate $systemArg --eval -E "with import ./. {}; $attr.${versionKey} or lib.getVersion $attr" | tr -d '"')
|
||||
oldVersion=$(nix-instantiate $systemArg --eval -E "with import ./. {}; $attr.${versionKey} or (lib.getVersion $attr)" | tr -d '"')
|
||||
|
||||
if [ -z "$drvName" -o -z "$oldVersion" ]; then
|
||||
die "Couldn't evaluate name and version from '$attr.name'!"
|
||||
|
Loading…
Reference in New Issue
Block a user