Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id A071C84D0E for ; Mon, 3 Jul 2023 20:58:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 7_jf9NAxqUsy for ; Mon, 3 Jul 2023 20:58:49 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 10FCC84D0C for ; Mon, 3 Jul 2023 20:58:49 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 0F2BAFA89; Mon, 3 Jul 2023 20:58:49 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_168841792928530" MIME-Version: 1.0 Date: Mon, 3 Jul 2023 20:58:49 +0000 From: "Thomas Klausner" Subject: CVS commit: pkgsrc/pkgtools/python-versions-check To: pkgsrc-changes@NetBSD.org Approved: commit_and_comment Reply-To: wiz@netbsd.org X-Mailer: log_accum Message-Id: <20230703205849.0F2BAFA89@cvs.NetBSD.org> This is a multi-part message in MIME format. --_----------=_168841792928530 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: wiz Date: Mon Jul 3 20:58:48 UTC 2023 Modified Files: pkgsrc/pkgtools/python-versions-check: Makefile pkgsrc/pkgtools/python-versions-check/files: python-versions-check Log Message: python-versions-check: update to 1.4. Somenow not all of my intended changes this afternoon made it into the commit. Use issuperset() in more places, fix some messages. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 pkgsrc/pkgtools/python-versions-check/Makefile cvs rdiff -u -r1.4 -r1.5 \ pkgsrc/pkgtools/python-versions-check/files/python-versions-check Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_168841792928530 Content-Disposition: inline Content-Length: 2383 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/pkgtools/python-versions-check/Makefile diff -u pkgsrc/pkgtools/python-versions-check/Makefile:1.4 pkgsrc/pkgtools/python-versions-check/Makefile:1.5 --- pkgsrc/pkgtools/python-versions-check/Makefile:1.4 Mon Jul 3 17:40:11 2023 +++ pkgsrc/pkgtools/python-versions-check/Makefile Mon Jul 3 20:58:48 2023 @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.4 2023/07/03 17:40:11 wiz Exp $ +# $NetBSD: Makefile,v 1.5 2023/07/03 20:58:48 wiz Exp $ -PKGNAME= python-versions-check-1.3 +PKGNAME= python-versions-check-1.4 CATEGORIES= pkgtools MAINTAINER= wiz@NetBSD.org Index: pkgsrc/pkgtools/python-versions-check/files/python-versions-check diff -u pkgsrc/pkgtools/python-versions-check/files/python-versions-check:1.4 pkgsrc/pkgtools/python-versions-check/files/python-versions-check:1.5 --- pkgsrc/pkgtools/python-versions-check/files/python-versions-check:1.4 Mon Jul 3 17:40:11 2023 +++ pkgsrc/pkgtools/python-versions-check/files/python-versions-check Mon Jul 3 20:58:48 2023 @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# $NetBSD: python-versions-check,v 1.4 2023/07/03 17:40:11 wiz Exp $ +# $NetBSD: python-versions-check,v 1.5 2023/07/03 20:58:48 wiz Exp $ # # Copyright (c) 2023 The NetBSD Foundation, Inc. # All rights reserved. @@ -213,7 +213,7 @@ for entry in result: if args.debug: print(f"DEBUG: comparing to {entry} - supports {entry_versions}") if not entry_versions.issuperset(supported_versions(args.package)): - report_problem(entry, entry_versions, entry_versions, supported_versions(args.package)) + report_problem(entry, entry_versions, supported_versions(args.package), entry_versions) makefiles = glob.glob(args.pkgsrcdir + '/*/*/Makefile*') makefiles.extend(glob.glob(args.pkgsrcdir + '/*/*/*.mk')) @@ -243,7 +243,7 @@ while searchlist: for package, dependencies in includes.items(): if entry in dependencies: package_versions = supported_versions(package) - if entry_versions < package_versions: - report_problem(package, package_versions, package_versions, entry_versions) + if not entry_versions.issuperset(package_versions): + report_problem(package, package_versions, entry_versions. package_versions) python_versions[package] = entry_versions searchlist.add(package) --_----------=_168841792928530--