diff options
author | tv <tv@krebsco.de> | 2019-02-16 15:39:17 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-02-16 15:39:20 +0100 |
commit | 2647605a32f36033ea567a2831dbe332978fd95b (patch) | |
tree | f6735279bf01dd4cb4cad1f44fe9086e1241cc73 /lib | |
parent | 7fcec61ae6a13cb82ff88706c9205eff9774a8be (diff) |
lib.warnOldVersion: init
Diffstat (limited to 'lib')
-rw-r--r-- | lib/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix index 347830e..75086f8 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -145,6 +145,11 @@ let in filter (x: x != []) ([acc.chunk] ++ acc.chunks); + warnOldVersion = oldName: newName: + if compareVersions oldName newName != -1 then + trace "Upstream `${oldName}' gets overridden by `${newName}'." newName + else + newName; }; in |