This might help prevent some duff imports.. ok?

Index: portimport
===================================================================
RCS file: /cvs/ports/infrastructure/bin/portimport,v
retrieving revision 1.8
diff -u -p -r1.8 portimport
--- portimport  18 Feb 2020 15:26:48 -0000      1.8
+++ portimport  18 Feb 2020 20:36:16 -0000
@@ -59,6 +59,9 @@ portsdir=${portsdir:-${PWD%"/$pkgpath"}}
 timestamp=$(date '+%Y%m%d')
 cvsroot=$u...@cvs.openbsd.org:/cvs
 
+echo -n "Package name is: "
+make show=PKGNAMES
+
 echo -n "Import would go into: "
 cvs -n -d$cvsroot import ports/$pkgpath $user ${user}_$timestamp 2>/dev/null | 
\
        grep Makefile | head -1 | awk '{print $2}' | xargs dirname

Reply via email to