summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-06-30 10:09:10 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-06-30 10:09:10 +0000
commitca2c2e2a2933355fd41bf265498c5cd8293b8545 (patch)
treed87427da1f43ba3cfc2c31f5b69a0b69537c32f2 /usr.sbin/pkg_add
parent08fb994828c1b46be9f6e5ef931ce457d133419c (diff)
differentiate more between @exec and @unexec
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Replace.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Replace.pm b/usr.sbin/pkg_add/OpenBSD/Replace.pm
index 852fac70275..61d421ad288 100644
--- a/usr.sbin/pkg_add/OpenBSD/Replace.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Replace.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Replace.pm,v 1.73 2010/06/09 07:26:01 espie Exp $
+# $OpenBSD: Replace.pm,v 1.74 2010/06/30 10:09:09 espie Exp $
#
# Copyright (c) 2004-2010 Marc Espie <espie@openbsd.org>
#
@@ -182,7 +182,11 @@ sub check_plist_exec
$state->errsay(($new ? "New": "Old").
" package #1 contains potentially unsafe operations", $plist->pkgname);
for my $i (@{$state->{journal}}) {
- $state->errsay("| #1", $i);
+ if ($new) {
+ $state->errsay("+ #1", $i);
+ } else {
+ $state->errsay("- #1", $i);
+ }
}
return 0;
}