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 Record the package's depot dire...



details:   https://anonhg.NetBSD.org/src/rev/05ae2df667e7
branches:  pkgviews
changeset: 534232:05ae2df667e7
user:      jlam <jlam%NetBSD.org@localhost>
date:      Wed Jul 23 22:58:24 2003 +0000

description:
Record the package's depot directory in a viewed package's +DEPOT file.
This "pointer" can be used by the pkg_* tools to identify exactly which
depoted package is installed in the view.

diffstat:

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

diffs (19 lines):

diff -r e7ec6f4f1900 -r 05ae2df667e7 usr.sbin/pkg_install/view/pkg_view.sh
--- a/usr.sbin/pkg_install/view/pkg_view.sh     Wed Jul 23 20:48:00 2003 +0000
+++ b/usr.sbin/pkg_install/view/pkg_view.sh     Wed Jul 23 22:58:24 2003 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: pkg_view.sh,v 1.1.2.11 2003/07/14 22:11:01 jlam Exp $
+# $NetBSD: pkg_view.sh,v 1.1.2.12 2003/07/23 22:58:24 jlam Exp $
 
 #
 # Copyright (c) 2001 Alistair G. Crooks.  All rights reserved.
@@ -133,6 +133,7 @@
                        $mkdirprog -p ${pkg_dbdir}/$1
                        (cd ${depot_pkg_dbdir}/$1; $paxprog -rwpe '-s|\./\+VIEWS$||' ./+* ${pkg_dbdir}/$1)
                        $sedprog -e 's|'${depot_pkg_dbdir}/$1'|'${targetdir}'|g' < ${depot_pkg_dbdir}/$1/+CONTENTS > ${pkg_dbdir}/$1/+CONTENTS
+                       echo "${depot_pkg_dbdir}/$1" > ${pkg_dbdir}/$1/+DEPOT
                fi
                ;;
        check)



Home | Main Index | Thread Index | Old Index