From 5da26b0719728348c03deced8a57df0fcb125f30 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Sun, 3 Mar 2024 19:59:34 +0200 Subject: [PATCH] handlers/rubygems: stop using mirrors * https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65850a10f84e1b7a2cdf55392fa1d1f0717193c1 Signed-off-by: Alfred Wingate --- src/euscan/__init__.py | 2 +- src/euscan/handlers/rubygems.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/euscan/__init__.py b/src/euscan/__init__.py index baa5a1c..c8374db 100644 --- a/src/euscan/__init__.py +++ b/src/euscan/__init__.py @@ -51,7 +51,7 @@ BLACKLIST_PACKAGES = [ ] SCANDIR_BLACKLIST_URLS = [ - "mirror://rubygems/(.*)", # Not browsable + "https://rubygems.org/(.*)", # Not browsable "mirror://gentoo/(.*)", # Directory too big "https://dev.gentoo.org/(.*)", # There shouldn't be releases here # Waste of time to go through diff --git a/src/euscan/handlers/rubygems.py b/src/euscan/handlers/rubygems.py index 7cb26ce..489f84f 100644 --- a/src/euscan/handlers/rubygems.py +++ b/src/euscan/handlers/rubygems.py @@ -1,5 +1,5 @@ # Copyright 2011 Corentin Chary -# Copyright 2020-2023 src_prepare group +# Copyright 2020-2024 src_prepare group # Distributed under the terms of the GNU General Public License v2 import json @@ -18,11 +18,11 @@ PRIORITY = 90 def can_handle(pkg, url=None): - return url and url.startswith("mirror://rubygems/") + return url and url.startswith("https://rubygems.org/") def guess_gem(cpv, url): - match = re.search("mirror://rubygems/(.*).gem", url) + match = re.search("https://rubygems.org/gems/(.*).gem", url) if match: cpv = "fake/%s" % match.group(1)