From: Lars Ingebrigtsen <larsi@gnus.org>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: 37556@debbugs.gnu.org
Subject: bug#37556: gpg "-unknown" version string
Date: Mon, 30 Sep 2019 16:04:09 +0200 [thread overview]
Message-ID: <87r23xdgo6.fsf@gnus.org> (raw)
In-Reply-To: <CAAeL0STKW=V515BRtZcdbTX-hyfBAo42fNUErwA4cSXfRxuu9w@mail.gmail.com> (Juanma Barranquero's message of "Mon, 30 Sep 2019 11:32:47 +0200")
Juanma Barranquero <lekktu@gmail.com> writes:
> On Mon, Sep 30, 2019 at 10:46 AM Eli Zaretskii <eliz@gnu.org> wrote:
>
>> You are saying that -unknown is in this case the same as -alpha.
>
> In fact, Lars gave it priority -4, so like a snapshot.
>
>> My problem is how to be sure this is the case everywhere where -unknown
>> could be used.
>
> True, but if -unknown is really uncommon, we can deal with the problems as
> they are reported (if ever).
Looking at the code, just keeping this in epg* is really awkward,
because we compare the version strings afterwards (in other contexts)
with version<=, which will then fail.
So I think this patch is needed to fix the epg problem. But I'm not
confident that it won't change behaviour for other users of these
version functions.
On the other hand, we have been adding to this alist over the years
without anything blowing up (that I know of), so perhaps it is safe-ish?
If it turns out to be a problem, it's easy enough to back out (but then
I don't really know how to fix the original epg problem in a sensible
manner).
diff --git a/lisp/subr.el b/lisp/subr.el
index 45b99a82d2..efe530cd54 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -5285,6 +5285,8 @@ version-regexp-alist
("^[-._+]$" . -4)
;; treat "1.2.3-CVS" as snapshot release
("^[-._+ ]?\\(cvs\\|git\\|bzr\\|svn\\|hg\\|darcs\\)$" . -4)
+ ;; treat "-unknown" the same as snapshots.
+ ("^[-._+ ]?unknown$" . -4)
("^[-._+ ]?alpha$" . -3)
("^[-._+ ]?beta$" . -2)
("^[-._+ ]?\\(pre\\|rc\\)$" . -1))
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2019-09-30 14:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-29 22:59 bug#37556: gpg "-unknown" version string Juanma Barranquero
2019-09-30 5:34 ` Lars Ingebrigtsen
2019-09-30 7:17 ` Eli Zaretskii
2019-09-30 7:49 ` Juanma Barranquero
2019-09-30 8:46 ` Eli Zaretskii
2019-09-30 9:32 ` Juanma Barranquero
2019-09-30 14:04 ` Lars Ingebrigtsen [this message]
2019-09-30 14:25 ` Noam Postavsky
2019-09-30 14:42 ` Lars Ingebrigtsen
2019-09-30 14:46 ` Noam Postavsky
2019-10-01 12:09 ` Lars Ingebrigtsen
2019-10-01 14:59 ` Kazuhiro Ito
2019-10-13 3:01 ` Lars Ingebrigtsen
2019-10-13 5:12 ` Juanma Barranquero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r23xdgo6.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=37556@debbugs.gnu.org \
--cc=lekktu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.