svn commit: r343829 - in head/ports-mgmt/pkgs_which: . files

Matthias Andree mandree at FreeBSD.org
Tue Feb 11 22:50:27 UTC 2014


Author: mandree
Date: Tue Feb 11 22:50:26 2014
New Revision: 343829
URL: http://svnweb.freebsd.org/changeset/ports/343829
QAT: https://qat.redports.org/buildarchive/r343829/

Log:
  0.4.1 2014-02-11
    - do not require files given on command line are regular files,
      but accept any non-directory (for instance, symlinks).
  
      Workaround for previous versions: use --no-find if you intend to
      look up non-regular files.

Modified:
  head/ports-mgmt/pkgs_which/Makefile
  head/ports-mgmt/pkgs_which/files/pkgs_which

Modified: head/ports-mgmt/pkgs_which/Makefile
==============================================================================
--- head/ports-mgmt/pkgs_which/Makefile	Tue Feb 11 22:35:45 2014	(r343828)
+++ head/ports-mgmt/pkgs_which/Makefile	Tue Feb 11 22:50:26 2014	(r343829)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	pkgs_which
-PORTVERSION=	0.4.0
+PORTVERSION=	0.4.1
 CATEGORIES=	ports-mgmt perl5
 MASTER_SITES=	# none
 DISTFILES=	# none

Modified: head/ports-mgmt/pkgs_which/files/pkgs_which
==============================================================================
--- head/ports-mgmt/pkgs_which/files/pkgs_which	Tue Feb 11 22:35:45 2014	(r343828)
+++ head/ports-mgmt/pkgs_which/files/pkgs_which	Tue Feb 11 22:50:26 2014	(r343829)
@@ -298,7 +298,7 @@ exit $rc;
 sub wanted {
     my ($dev,$ino,$mode,$nlink,$uid,$gid);
 
-    if ((($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_)) && -f _)
+    if ((($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_)) && ! -d _)
     {
 	# only record clean names
 	if ($_ =~ $UNTAINT and $1) {
@@ -406,6 +406,13 @@ L<pkg_info>(8), L<portmaster>(8), L<port
 
 =head1 HISTORY
 
+0.4.1 2014-02-11
+  - do not require files given on command line are regular files,
+    but accept any non-directory (for instance, symlinks).
+
+    Workaround for previous versions: use --no-find if you intend to
+    look up non-regular files.
+
 0.4.0 2013-11-28
   - support pkgNG. Known issue is that pkg which returns bogus exit
     codes, spamming your screen.  pkgs_which works nonetheless.


More information about the svn-ports-head mailing list