Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/pkg_install/view Use "pkg_admin add|delete" to mani...
details: https://anonhg.NetBSD.org/src/rev/2a9fc351a2d3
branches: trunk
changeset: 551562:2a9fc351a2d3
user: jlam <jlam%NetBSD.org@localhost>
date: Mon Sep 08 07:09:33 2003 +0000
description:
Use "pkg_admin add|delete" to manipulate the pkgdb.byfile.db files in each
view so that they contain the correct information for the files stored in
each view.
diffstat:
usr.sbin/pkg_install/view/pkg_view.1 | 4 ++--
usr.sbin/pkg_install/view/pkg_view.sh | 5 ++++-
2 files changed, 6 insertions(+), 3 deletions(-)
diffs (53 lines):
diff -r 400c2504792a -r 2a9fc351a2d3 usr.sbin/pkg_install/view/pkg_view.1
--- a/usr.sbin/pkg_install/view/pkg_view.1 Mon Sep 08 07:09:13 2003 +0000
+++ b/usr.sbin/pkg_install/view/pkg_view.1 Mon Sep 08 07:09:33 2003 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: pkg_view.1,v 1.4 2003/09/03 12:45:25 jlam Exp $
+.\" $NetBSD: pkg_view.1,v 1.5 2003/09/08 07:09:33 jlam Exp $
.\"
.\" Copyright (c) 2003 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -92,7 +92,7 @@
.Ev DEPOTBASE
if it's set, otherwise the default
.Ar stowdir
-is the
+is the path to the
.Pa packages
directory under
.Ar viewbase .
diff -r 400c2504792a -r 2a9fc351a2d3 usr.sbin/pkg_install/view/pkg_view.sh
--- a/usr.sbin/pkg_install/view/pkg_view.sh Mon Sep 08 07:09:13 2003 +0000
+++ b/usr.sbin/pkg_install/view/pkg_view.sh Mon Sep 08 07:09:33 2003 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: pkg_view.sh,v 1.3 2003/09/03 12:45:25 jlam Exp $
+# $NetBSD: pkg_view.sh,v 1.4 2003/09/08 07:09:34 jlam Exp $
#
# Copyright (c) 2001 Alistair G. Crooks. All rights reserved.
@@ -45,6 +45,7 @@
lnprog=/bin/ln
mkdirprog=/bin/mkdir
paxprog=/bin/pax
+pkgadminprog=/usr/sbin/pkg_admin
pkginfoprog=/usr/sbin/pkg_info
rmprog=/bin/rm
rmdirprog=/bin/rmdir
@@ -211,6 +212,7 @@
echo "${depot_pkg_dbdir}/$1" > ${pkg_dbdir}/$1/+DEPOT
;;
esac
+ $doit $pkgadminprog -K ${pkg_dbdir} add $1
if [ -f ${pkg_dbdir}/$1/+INSTALL ]; then
$doit $chmodprog +x ${pkg_dbdir}/$1/+INSTALL
$doit $envprog -i PKG_PREFIX=${targetdir} ${pkg_dbdir}/$1/+INSTALL $1 VIEW-INSTALL
@@ -260,6 +262,7 @@
esac
$doit $rmprog ${temp}
$doit $rmprog -rf ${pkg_dbdir}/$1
+ $doit $pkgadminprog -K ${pkg_dbdir} delete $1
;;
esac
shift
Home |
Main Index |
Thread Index |
Old Index