diff options
Diffstat (limited to 'usr.sbin/pkg_add/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/pkg_add | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add index 1ccafb5898e..b341103b1b1 100644 --- a/usr.sbin/pkg_add/pkg_add +++ b/usr.sbin/pkg_add/pkg_add @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_add,v 1.88 2004/11/01 11:27:50 espie Exp $ +# $OpenBSD: pkg_add,v 1.89 2004/11/01 14:30:00 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -441,6 +441,12 @@ sub really_add($$) $interrupted = 1; }; + if ($state->{replace}) { + require OpenBSD::Update; + + $plist->visit('extract', $state); + } + do_script($plist, REQUIRE, $state, "INSTALL"); do_script($plist, INSTALL, $state, "PRE-INSTALL"); |