emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/hyperdrive 8dce0e034d 8/9: Fix: (he/within-version-range)


From: ELPA Syncer
Subject: [nongnu] elpa/hyperdrive 8dce0e034d 8/9: Fix: (he/within-version-range) Handle version-less ENTRY argument
Date: Thu, 15 Aug 2024 19:00:07 -0400 (EDT)

branch: elpa/hyperdrive
commit 8dce0e034d5c1336041f4b365ce8d0ac49a70044
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>

    Fix: (he/within-version-range) Handle version-less ENTRY argument
---
 hyperdrive-lib.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index 874216087b..ed850b08d4 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -1741,7 +1741,8 @@ Compares their public keys."
 (defun he/within-version-range (entry entry-with-range-end)
   "Return non-nil if ENTRY's is within ENTRY-WITH-RANGE-END's range."
   (<= (he/version entry-with-range-end)
-      (he/version entry)
+      (or (he/version entry)
+          (h/latest-version (he/hyperdrive entry)))
       (map-elt (he/etc entry-with-range-end) 'range-end)))
 
 (defun h//ensure-dot-slash-prefix-path (path)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]