mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-07 11:29:59 +01:00
import: crate: Fix find-package-version.
Fixes bug from 5ce1512b0f
, where the
earliest existing package (if any) was returned instead. See also:
https://issues.guix.gnu.org/68346#3-lineno97
* guix/import/crate.scm (crate->guix-package)[find-package-version]:
Invert boolean expression.
Change-Id: I1d05f55a027241e7c5f62cc98a50a09b5639bdcf
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
1b1b304011
commit
17477101dd
1 changed files with 3 additions and 3 deletions
|
@ -335,9 +335,9 @@ look up the development dependencs for the given crate."
|
|||
(find-packages-by-name
|
||||
(crate-name->package-name name))))
|
||||
(match-lambda* (((semver1 yanked1) (semver2 yanked2))
|
||||
(or (and yanked1 (not yanked2))
|
||||
(and (eq? yanked1 yanked2)
|
||||
(semver<? semver1 semver2))))))))
|
||||
(and (or (not yanked1) yanked2)
|
||||
(or (not (eq? yanked1 yanked2))
|
||||
(semver>? semver1 semver2))))))))
|
||||
(and (not (eq? #f version))
|
||||
(match-let (((semver yanked) version))
|
||||
(list (semver->string semver) yanked)))))
|
||||
|
|
Loading…
Add table
Reference in a new issue