pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/pkgtools/revbump/files



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.

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')



Home | Main Index | Thread Index | Old Index