unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#37442] [PATCH] import/github: Check for more version prefixes
@ 2019-09-17 18:59 Efraim Flashner
  2019-09-19 19:50 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Efraim Flashner @ 2019-09-17 18:59 UTC (permalink / raw)
  To: 37442


[-- Attachment #1.1: Type: text/plain, Size: 563 bytes --]

'guix refresh openjpeg'
gnu/packages/image.scm:762:13: openjpeg would be upgraded from 2.3.1 to ersion.2.1

I checked the git repository, there are a number of tags reading
'version.2.1' or similar. This allows for version tags 'version2.1' or
'version-2.1' or 'version.2.1' or 'version→2.1'. (still looking for a
repo to test the last one)

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #1.2: 0001-import-github-Check-for-more-version-prefixes.patch --]
[-- Type: text/plain, Size: 1575 bytes --]

From 1d32a908d3bdbec89420b638791960e7535a5e90 Mon Sep 17 00:00:00 2001
From: Efraim Flashner <efraim@flashner.co.il>
Date: Tue, 17 Sep 2019 21:50:36 +0300
Subject: [PATCH] import/github: Check for more version prefixes.

* guix/import/github.scm (latest-released-version): Allow the
version string to begin with the word 'version'.
---
 guix/import/github.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/guix/import/github.scm b/guix/import/github.scm
index 55ea00a111..df5f6ff32f 100644
--- a/guix/import/github.scm
+++ b/guix/import/github.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
 ;;; Copyright © 2019 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -186,7 +187,12 @@ the package e.g. 'bedtools2'.  Return #f if there is no releases"
                        (substring tag 0 (+ name-length 1))))
         (substring tag (+ name-length 1)))
        ;; some tags start with a "v" e.g. "v0.25.0"
+       ;; or with the word "version" e.g. "version.2.1"
        ;; where some are just the version number
+       ((string-prefix? "version" tag)
+        (if (char-set-contains? char-set:digit (string-ref tag 7))
+            (substring tag 7)
+            (substring tag 8)))
        ((string-prefix? "v" tag)
         (substring tag 1))
        ;; Finally, reject tags that don't start with a digit:
-- 
2.23.0


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#37442] [PATCH] import/github: Check for more version prefixes
  2019-09-17 18:59 [bug#37442] [PATCH] import/github: Check for more version prefixes Efraim Flashner
@ 2019-09-19 19:50 ` Ludovic Courtès
  2019-09-20  6:07   ` bug#37442: " Efraim Flashner
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2019-09-19 19:50 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: 37442

Hi!

Efraim Flashner <efraim@flashner.co.il> skribis:

> 'guix refresh openjpeg'
> gnu/packages/image.scm:762:13: openjpeg would be upgraded from 2.3.1 to ersion.2.1

Ouch.

> I checked the git repository, there are a number of tags reading
> 'version.2.1' or similar. This allows for version tags 'version2.1' or
> 'version-2.1' or 'version.2.1' or 'version→2.1'. (still looking for a
> repo to test the last one)

:-)

> From 1d32a908d3bdbec89420b638791960e7535a5e90 Mon Sep 17 00:00:00 2001
> From: Efraim Flashner <efraim@flashner.co.il>
> Date: Tue, 17 Sep 2019 21:50:36 +0300
> Subject: [PATCH] import/github: Check for more version prefixes.
>
> * guix/import/github.scm (latest-released-version): Allow the
> version string to begin with the word 'version'.

LGTM!

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#37442: [PATCH] import/github: Check for more version prefixes
  2019-09-19 19:50 ` Ludovic Courtès
@ 2019-09-20  6:07   ` Efraim Flashner
  0 siblings, 0 replies; 3+ messages in thread
From: Efraim Flashner @ 2019-09-20  6:07 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 37442-done

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

Thanks. Patch pushed.


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-09-20  6:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-17 18:59 [bug#37442] [PATCH] import/github: Check for more version prefixes Efraim Flashner
2019-09-19 19:50 ` Ludovic Courtès
2019-09-20  6:07   ` bug#37442: " Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).