git: 946a5aef9357 - main - ports-mgmt/fastest_pkg: Update example line

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Fri, 14 Jul 2023 10:11:59 UTC
The branch main has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=946a5aef9357709b16b55e284b8088469ce46922

commit 946a5aef9357709b16b55e284b8088469ce46922
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2023-07-14 10:08:24 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2023-07-14 10:08:24 +0000

    ports-mgmt/fastest_pkg: Update example line
    
    Display mirror_type: "NONE" in example line as recent versions of
    pkg(8) are more capable of warning.
    
    PR:             272468
    Reported by:    grahamperrin
---
 ports-mgmt/fastest_pkg/Makefile                               |  1 +
 .../fastest_pkg/files/patch-fastest__pkg_fastest__pkg.py      | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/ports-mgmt/fastest_pkg/Makefile b/ports-mgmt/fastest_pkg/Makefile
index 171362ce2f65..f78add869982 100644
--- a/ports-mgmt/fastest_pkg/Makefile
+++ b/ports-mgmt/fastest_pkg/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	fastest_pkg
 PORTVERSION=	0.2.1
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	ports-mgmt python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
diff --git a/ports-mgmt/fastest_pkg/files/patch-fastest__pkg_fastest__pkg.py b/ports-mgmt/fastest_pkg/files/patch-fastest__pkg_fastest__pkg.py
new file mode 100644
index 000000000000..e6d6fc705910
--- /dev/null
+++ b/ports-mgmt/fastest_pkg/files/patch-fastest__pkg_fastest__pkg.py
@@ -0,0 +1,11 @@
+--- fastest_pkg/fastest_pkg.py.orig	2022-11-11 12:59:37 UTC
++++ fastest_pkg/fastest_pkg.py
+@@ -146,7 +146,7 @@ def main():
+         print(json.dumps(stats_sorted))
+     else:
+         pkg = PkgMirror(stats_sorted[0]["mirror_name"])
+-        pkg_cfg = 'FreeBSD: { url: "http://%s/${ABI}/%s" }' % (
++        pkg_cfg = 'FreeBSD: { url: "http://%s/${ABI}/%s", mirror_type: "NONE" }' % (
+             stats_sorted[0]["mirror_name"],
+             pkg.release,
+         )