From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8F3E91382C5 for ; Wed, 5 May 2021 16:47:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D3162E086A; Wed, 5 May 2021 16:47:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B0870E086A for ; Wed, 5 May 2021 16:47:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BFF5F33BE61 for ; Wed, 5 May 2021 16:47:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6778A4D2 for ; Wed, 5 May 2021 16:47:41 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1620231254.3ecda98fcd590fed73966df7f7f1fca86de019a7.ulm@gentoo> Subject: [gentoo-commits] proj/gs-elpa:master commit in: gs_elpa/ X-VCS-Repository: proj/gs-elpa X-VCS-Files: gs_elpa/elpa_db.py X-VCS-Directories: gs_elpa/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 3ecda98fcd590fed73966df7f7f1fca86de019a7 X-VCS-Branch: master Date: Wed, 5 May 2021 16:47:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bec923b7-9d40-4373-b3e8-cf49ab37871f X-Archives-Hash: 20e6b9ed4d20aa71ea737ebab832aacd commit: 3ecda98fcd590fed73966df7f7f1fca86de019a7 Author: Ulrich Müller gentoo org> AuthorDate: Wed May 5 16:14:14 2021 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Wed May 5 16:14:14 2021 +0000 URL: https://gitweb.gentoo.org/proj/gs-elpa.git/commit/?id=3ecda98f gs_elpa/elpa_db.py: Check version numbers for sanity Packages with negative version numbers have been seen in melpa-stable. These appear to be the result of mapping non-numeric versions, which are defined in version-regexp-alist as follows (Emacs 27.2): (("^[-._+ ]?snapshot$" . -4) ("^[-._+]$" . -4) ("^[-._+ ]?\\(cvs\\|git\\|bzr\\|svn\\|hg\\|darcs\\)$" . -4) ("^[-._+ ]?unknown$" . -4) ("^[-._+ ]?alpha$" . -3) ("^[-._+ ]?beta$" . -2) ("^[-._+ ]?\\(pre\\|rc\\)$" . -1)) We could try to map them to Gentoo _alpha, _beta, etc. suffixes, but it would require more effort to determine the name of the distfile (and record it in the ebuild). Therefore skip these packages for now. Signed-off-by: Ulrich Müller gentoo.org> gs_elpa/elpa_db.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gs_elpa/elpa_db.py b/gs_elpa/elpa_db.py index ad0e374..f307c87 100644 --- a/gs_elpa/elpa_db.py +++ b/gs_elpa/elpa_db.py @@ -88,6 +88,11 @@ class ElpaDBGenerator(DBGenerator): if self.in_config([common_config, config], "exclude", realname): continue + # Version numbers with negative elements have been seen + # in melpa-stable. Skip these packages for now. + if not all(i >= 0 for i in desc[INFO_VERSION]): + continue + pkg = Package("app-emacs", realname, '.'.join(map(str, desc[INFO_VERSION]))) source_type = desc[INFO_SRC_TYPE].value()