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)