pkgsrc-Changes archive

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

CVS commit: pkgsrc/pkgtools/python-versions-check



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Jul  1 13:16:52 UTC 2023

Modified Files:
        pkgsrc/pkgtools/python-versions-check: Makefile
        pkgsrc/pkgtools/python-versions-check/files: python-versions-check

Log Message:
python-versions-check: add more checks for automatic package selection

Bump version.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/pkgtools/python-versions-check/Makefile
cvs rdiff -u -r1.2 -r1.3 \
    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.

Modified files:

Index: pkgsrc/pkgtools/python-versions-check/Makefile
diff -u pkgsrc/pkgtools/python-versions-check/Makefile:1.2 pkgsrc/pkgtools/python-versions-check/Makefile:1.3
--- pkgsrc/pkgtools/python-versions-check/Makefile:1.2  Sat Jul  1 11:17:12 2023
+++ pkgsrc/pkgtools/python-versions-check/Makefile      Sat Jul  1 13:16:52 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2023/07/01 11:17:12 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2023/07/01 13:16:52 wiz Exp $
 
-PKGNAME=               python-versions-check-1.1
+PKGNAME=               python-versions-check-1.2
 CATEGORIES=            pkgtools
 
 MAINTAINER=            wiz%NetBSD.org@localhost

Index: pkgsrc/pkgtools/python-versions-check/files/python-versions-check
diff -u pkgsrc/pkgtools/python-versions-check/files/python-versions-check:1.2 pkgsrc/pkgtools/python-versions-check/files/python-versions-check:1.3
--- pkgsrc/pkgtools/python-versions-check/files/python-versions-check:1.2       Sat Jul  1 11:17:12 2023
+++ pkgsrc/pkgtools/python-versions-check/files/python-versions-check   Sat Jul  1 13:16:52 2023
@@ -1,6 +1,6 @@
 #!/usr/bin/env python3
 #
-# $NetBSD: python-versions-check,v 1.2 2023/07/01 11:17:12 wiz Exp $
+# $NetBSD: python-versions-check,v 1.3 2023/07/01 13:16:52 wiz Exp $
 #
 # Copyright (c) 2023 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -176,7 +176,13 @@ parser.add_argument('-w', dest='wip', de
 args = parser.parse_args()
 
 if not args.package:
-    args.package = get_pkg_path(pathlib.Path().resolve())
+    current_path = pathlib.Path().resolve()
+    mk = current_path.joinpath('../../mk')
+    doc = current_path.joinpath('../../doc')
+    if not doc.exists() or not mk.exists():
+        print('not inside a pkgsrc directory, can not guess package')
+        sys.exit(1)
+    args.package = str(current_path.parent.name) + '/' + str(current_path.name)
 
 if not pathlib.Path(args.pkgsrcdir).exists() or \
    not pathlib.Path(args.pkgsrcdir + '/doc').exists() or \



Home | Main Index | Thread Index | Old Index