Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jul 2023 10:11:59 GMT
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 946a5aef9357 - main - ports-mgmt/fastest_pkg: Update example line
Message-ID:  <202307141011.36EABxPH079996@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,
+         )



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307141011.36EABxPH079996>