Maxim Cournoyer
d131c228dc
import/utils: Allow `find-version' to match an over-specified version.
...
This fixes the use case of using --target-version with an exact
match (--target-version causes the partial? mode to be enabled).
* tests/import/utils.scm ("find-version, latest")
("find-version, empty versions list")
("find-version, partial, under-specified")
("find-version, partial, exact")
("find-version, partial, over-specified"): New tests.
* guix/import/utils.scm (find-version): [PARTIAL?]: Truncate VERSION to the
maximum length of VERSIONS. Explicitly handle the empty versions case.
2026-08-25 10:07:51 +09:00
..
2026-08-25 10:07:51 +09:00
2026-04-10 14:55:04 +09:00
2026-06-18 16:46:52 +02:00
2026-04-12 17:23:42 +02:00
2025-12-11 15:43:16 +01:00
2025-09-18 13:44:12 +09:00
2026-05-24 10:14:42 +01:00
2024-08-21 00:52:39 +02:00
2026-07-02 19:42:48 +02:00
2026-03-25 23:51:26 +01:00
2026-06-18 16:46:53 +02:00
2025-08-31 12:39:24 +02:00
2025-08-31 12:39:24 +02:00
2025-10-30 16:19:50 +09:00
2026-03-29 22:20:59 +02:00
2026-01-25 21:23:25 +01:00
2026-08-10 01:09:28 +08:00
2026-04-10 14:46:59 +09:00
2026-07-06 12:00:49 +02:00
2025-12-03 14:38:09 +09:00
2025-11-18 13:05:49 +01:00
2025-10-05 20:30:45 +02:00
2025-10-30 16:19:50 +09:00
2026-04-10 14:55:04 +09:00
2026-03-17 18:45:40 +01:00
2026-04-19 10:54:06 +03:00
2026-07-02 19:42:47 +02:00
2026-04-30 02:07:20 +02:00
2026-06-15 10:48:17 +09:00
2025-11-21 14:38:44 +01:00
2025-06-22 23:45:36 +02:00
2025-10-17 12:23:54 +02:00
2026-05-29 14:23:28 +02:00
2025-10-17 12:23:54 +02:00
2025-10-17 12:23:54 +02:00
2026-02-06 20:49:01 +01:00
2026-02-12 23:03:31 +01:00
2025-05-19 10:07:24 +09:00
2024-12-14 01:28:49 +01:00
2026-04-30 02:07:20 +02:00
2025-02-09 18:20:41 +01:00
2026-05-16 12:50:11 +02:00
2026-07-01 10:50:04 +02:00
2025-01-16 22:32:11 +01:00
2025-10-29 11:51:24 +09:00
2025-11-14 16:42:16 +09:00
2024-08-31 10:42:16 +02:00
2025-03-05 00:28:49 +01:00
2026-07-02 19:42:47 +02:00
2025-09-18 13:44:12 +09:00
2026-07-08 18:33:27 +02:00
2025-09-18 13:44:12 +09:00
2026-04-10 15:03:18 +09:00
2026-06-18 16:46:52 +02:00
2026-05-24 10:14:43 +01:00
2025-03-26 17:57:44 +01:00
2026-07-23 23:45:30 +02:00
2026-07-02 19:42:47 +02:00
2025-02-24 23:33:51 +01:00
2026-03-29 22:32:57 +02:00
2025-09-18 13:44:12 +09:00
2025-03-05 00:28:49 +01:00
2024-12-30 00:51:57 +01:00
2025-10-06 10:42:08 +02:00
2026-08-17 16:47:36 +02:00
2026-06-30 10:57:49 +02:00
2026-07-05 11:47:15 +02:00
2025-10-30 16:19:51 +09:00
2026-08-08 23:01:52 +01:00
2026-01-29 13:51:06 +09:00
2026-05-10 17:01:08 +02:00
2026-06-05 16:24:49 +02:00
2025-01-08 23:03:04 +01:00