Received: by mail.netbsd.org (Postfix, from userid 605) id 8B31884F87; Thu, 18 Jan 2024 10:11:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id BB84F84F85 for ; Thu, 18 Jan 2024 10:11:56 +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 ilEvOvp31k0S for ; Thu, 18 Jan 2024 10:11:56 +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 1876884E5C for ; Thu, 18 Jan 2024 10:11:56 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 09245FA42; Thu, 18 Jan 2024 10:11:56 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_170557271539320" MIME-Version: 1.0 Date: Thu, 18 Jan 2024 10:11:55 +0000 From: "Thomas Klausner" Subject: CVS commit: pkgsrc/pkgtools/revbump/files To: pkgsrc-changes@NetBSD.org Reply-To: wiz@netbsd.org X-Mailer: log_accum Message-Id: <20240118101156.09245FA42@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_170557271539320 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: wiz Date: Thu Jan 18 10:11:55 UTC 2024 Modified Files: pkgsrc/pkgtools/revbump/files: revbump.py Log Message: revbump: improve an error message Suggested by gdt To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 pkgsrc/pkgtools/revbump/files/revbump.py Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_170557271539320 Content-Disposition: inline Content-Length: 1069 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/pkgtools/revbump/files/revbump.py diff -u pkgsrc/pkgtools/revbump/files/revbump.py:1.6 pkgsrc/pkgtools/revbump/files/revbump.py:1.7 --- pkgsrc/pkgtools/revbump/files/revbump.py:1.6 Fri Dec 29 21:23:40 2023 +++ pkgsrc/pkgtools/revbump/files/revbump.py Thu Jan 18 10:11:55 2024 @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# $NetBSD: revbump.py,v 1.6 2023/12/29 21:23:40 adam Exp $ +# $NetBSD: revbump.py,v 1.7 2024/01/18 10:11:55 wiz Exp $ # # Copyright (c) 2023 The NetBSD Foundation, Inc. # All rights reserved. @@ -207,6 +207,9 @@ if not args.recursive: if args.package == 'lang/go': searchlist = ['lang/go/version.mk'] else: + if not pathlib.Path(args.pkgsrcdir + '/' + args.package.rstrip('/')).exists(): + print(f'directory {args.package} does not exist or is not a pkgsrc directory') + sys.exit(1) initial_bl3 = args.package.rstrip('/') + '/buildlink3.mk' if not pathlib.Path(args.pkgsrcdir + '/' + initial_bl3).exists(): print(f'package {args.package} provides no buildlink3.mk file') --_----------=_170557271539320--