Merge pull request #154070 from adisbladis/emacs-melpa-zero-versions

emacs.pkgs.melpa*: Fix version number checks if number is zero
This commit is contained in:
adisbladis 2022-01-09 12:12:57 +12:00 committed by GitHub
commit df6bc254d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ in {
lib.concatStringsSep "." (map toString
# Hack: Melpa archives contains versions with parse errors such as [ 4 4 -4 413 ] which should be 4.4-413
# This filter method is still technically wrong, but it's computationally cheap enough and tapers over the issue
(builtins.filter (n: n > 0) version));
(builtins.filter (n: n >= 0) version));
# TODO: Broken should not result in src being null (hack to avoid eval errors)
src = if (isNull sha256 || broken) then null else
lib.getAttr fetcher (fetcherGenerators args sourceArgs);