summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Update.pm
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Update.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Update.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm
index 669092c45e1..3e70756a14f 100644
--- a/usr.sbin/pkg_add/OpenBSD/Update.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Update.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Update.pm,v 1.121 2009/12/26 16:58:55 espie Exp $
+# $OpenBSD: Update.pm,v 1.122 2009/12/28 19:28:59 espie Exp $
#
# Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org>
#
@@ -118,7 +118,8 @@ sub process_handle
# because of conflicts, in which case the pkgpath +
# conflict should be enough to "match".
for my $n ($set->newer) {
- if ($n->location->update_info->match_pkgpath($plist) &&
+ if (($state->{hard_replace} ||
+ $n->location->update_info->match_pkgpath($plist)) &&
$n->plist->conflict_list->conflicts_with($sname)) {
$self->add_handle($set, $h, $n);
return 1;