Source-Changes-HG archive

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

[src/pkgviews]: src/usr.sbin/pkg_install/view By default, don't symlink files...



details:   https://anonhg.NetBSD.org/src/rev/6e780c54daa2
branches:  pkgviews
changeset: 534239:6e780c54daa2
user:      jlam <jlam%NetBSD.org@localhost>
date:      Fri Jul 25 18:47:47 2003 +0000

description:
By default, don't symlink files that match "*[~#] *.OLD *.orig" (list
borrowed from /etc/rc.subr) into the view, since they're extremely likely
to be scratch files left over from editing config files, and they'd just
pollute the view with unnecessary files.

diffstat:

 usr.sbin/pkg_install/view/pkg_view.1  |  6 +++---
 usr.sbin/pkg_install/view/pkg_view.sh |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (47 lines):

diff -r 00ca492be2ca -r 6e780c54daa2 usr.sbin/pkg_install/view/pkg_view.1
--- a/usr.sbin/pkg_install/view/pkg_view.1      Fri Jul 25 17:27:26 2003 +0000
+++ b/usr.sbin/pkg_install/view/pkg_view.1      Fri Jul 25 18:47:47 2003 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: pkg_view.1,v 1.1.2.5 2003/07/24 23:14:53 jlam Exp $
+.\"    $NetBSD: pkg_view.1,v 1.1.2.6 2003/07/25 18:47:47 jlam Exp $
 .\"
 .\" Copyright (c) 2003 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -147,7 +147,7 @@
 .Ev PKG_DBDIR
 environment variable.
 .It Ev PLIST_IGNORE_FILES
-This can be used to specify shell glob patterns to match files in
+This can be used to specify files in
 .Ar package
 that should ignored when adding or removing the package from
 .Ar view .
@@ -155,7 +155,7 @@
 is a space-separated list of shell glob patterns that match files relative
 to the
 .Ar package
-directory.
+directory, and it defaults to "info/dir *[~#] *.OLD *.orig".
 .It Ev PKG_VIEW
 The default view can be specified in the
 .Ev PKG_VIEW
diff -r 00ca492be2ca -r 6e780c54daa2 usr.sbin/pkg_install/view/pkg_view.sh
--- a/usr.sbin/pkg_install/view/pkg_view.sh     Fri Jul 25 17:27:26 2003 +0000
+++ b/usr.sbin/pkg_install/view/pkg_view.sh     Fri Jul 25 18:47:47 2003 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: pkg_view.sh,v 1.1.2.16 2003/07/25 17:27:26 jlam Exp $
+# $NetBSD: pkg_view.sh,v 1.1.2.17 2003/07/25 18:47:48 jlam Exp $
 
 #
 # Copyright (c) 2001 Alistair G. Crooks.  All rights reserved.
@@ -71,7 +71,7 @@
 stowdir=""
 prefix=${PREFIX:-/usr/pkg}
 view=${PKG_VIEW:-""}
-ignorefiles=${PLIST_IGNORE_FILES:-info/dir}
+ignorefiles=${PLIST_IGNORE_FILES:-"info/dir *[~#] *.OLD *.orig"}
 dflt_pkg_dbdir=${PKG_DBDIR:-/var/db/pkg}
 
 while [ $# -gt 0 ]; do



Home | Main Index | Thread Index | Old Index