mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
gnome3.updateScript: fix tarball eval on nonexisting attrpaths
As reported in 974f11cb29 (commitcomment-38735081)
,
the tarball will fail to evaluate when updateScript is given a non-existing attrPath because getAttrFromPath
uses abort, which terminates the evaluation.
This commit is contained in:
parent
22133c6bf3
commit
f544c293ec
@ -5,7 +5,7 @@ let
|
||||
python = python3.withPackages (p: [ p.requests ]);
|
||||
upperBoundFlag =
|
||||
let
|
||||
package = lib.getAttrFromPath (lib.splitString "." attrPath) pkgs;
|
||||
package = lib.attrByPath (lib.splitString "." attrPath) (throw "Cannot find attribute ‘${attrPath}’.") pkgs;
|
||||
packageVersion = lib.getVersion package;
|
||||
versionComponents = lib.versions.splitVersion packageVersion;
|
||||
minorVersion = lib.versions.minor packageVersion;
|
||||
|
Loading…
Reference in New Issue
Block a user