summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-06-07 09:18:12 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-06-07 09:18:12 +0000
commit393282fe9783d13baea0dd11e78f093be491e4da (patch)
treef0ca22675f5eb92ed19193093bfaac30fa37653e /usr.sbin
parent2cab1059b992862e9390ed895b4d8cb0054d8e18 (diff)
fix interactive
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgCheck.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm b/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm
index f88633f5439..a9477f3a00a 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCheck.pm,v 1.4 2010/06/07 09:10:37 espie Exp $
+# $OpenBSD: PkgCheck.pm,v 1.5 2010/06/07 09:18:11 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
@@ -288,7 +288,7 @@ sub may_remove
$self->remove($state, $name);
} elsif ($state->{interactive}) {
require OpenBSD::Interactive;
- if (OpenBSD::Interactive("Remove wrong package $name ?")) {
+ if (OpenBSD::Interactive::confirm("Remove wrong package $name ?")) {
$self->remove($state, $name);
}
}
@@ -301,7 +301,7 @@ sub ask_delete_deps
$req->delete(@$l);
} elsif ($state->{interactive}) {
require OpenBSD::Interactive;
- if (OpenBSD::Interactive("Remove missing deps ?")) {
+ if (OpenBSD::Interactive::confirm("Remove missing deps ?")) {
$req->delete(@$l);
}
}
@@ -314,7 +314,7 @@ sub ask_add_deps
$req->add(@$l);
} elsif ($state->{interactive}) {
require OpenBSD::Interactive;
- if (OpenBSD::Interactive("Add missing deps ?")) {
+ if (OpenBSD::Interactive::confirm("Add missing deps ?")) {
$req->add(@$l);
}
}