mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
change SITE_PYPI to use files.pythonhosted.org as suggested in
https://docs.pypi.org/api/#integration-guide "Predictable URLs"; teach portroach to handle this. ok aja@ jasper@
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# $OpenBSD: network.conf,v 1.26 2024/04/29 05:12:48 matthieu Exp $
|
||||
# $OpenBSD: network.conf,v 1.27 2025/01/10 11:44:18 sthen Exp $
|
||||
|
||||
# List of OpenBSD sites
|
||||
SITE_OPENBSD ?= \
|
||||
@@ -141,7 +141,7 @@ SITE_APACHE+= \
|
||||
https://archive.apache.org/dist/
|
||||
|
||||
SITE_PYPI += \
|
||||
https://pypi.io/packages/source/
|
||||
https://files.pythonhosted.org/packages/source/
|
||||
|
||||
SITE_RUBYGEMS += \
|
||||
https://rubygems.org/downloads/
|
||||
|
||||
@@ -3,7 +3,7 @@ COMMENT= OpenBSD ports distfile version scanner
|
||||
GH_ACCOUNT= jasperla
|
||||
GH_PROJECT= portroach
|
||||
GH_TAGNAME= 2.0.11
|
||||
REVISION= 7
|
||||
REVISION= 8
|
||||
|
||||
CATEGORIES= misc
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
Index: Portroach/SiteHandler/PyPI.pm
|
||||
--- Portroach/SiteHandler/PyPI.pm.orig
|
||||
+++ Portroach/SiteHandler/PyPI.pm
|
||||
@@ -73,7 +73,7 @@ sub CanHandle
|
||||
|
||||
my ($url) = @_;
|
||||
|
||||
- return ($url =~ /https:\/\/pypi\.io\//);
|
||||
+ return ($url =~ /https:\/\/(files\.pythonhosted\.org|pypi\.io)\//);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user