diff options
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Add.pm | 4 | ||||
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Delete.pm | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm index f68af073195..6ac2ce678f0 100644 --- a/usr.sbin/pkg_add/OpenBSD/Add.pm +++ b/usr.sbin/pkg_add/OpenBSD/Add.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Add.pm,v 1.163 2014/11/25 14:16:15 espie Exp $ +# $OpenBSD: Add.pm,v 1.164 2014/11/30 15:53:26 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org> # @@ -865,7 +865,7 @@ sub prepare_for_addition if ($self->spec->match_ref(\@old) > 0) { my $key = "update_".OpenBSD::PackageName::splitstem($pkgname); return if $state->defines($key); - if ($state->{interactive}) { + if ($state->is_interactive) { if ($state->confirm($pkgname.":".$self->{message}."\n". "Do you want to update now", 0)) { return; diff --git a/usr.sbin/pkg_add/OpenBSD/Delete.pm b/usr.sbin/pkg_add/OpenBSD/Delete.pm index fe5937ff4c9..62a1098bede 100644 --- a/usr.sbin/pkg_add/OpenBSD/Delete.pm +++ b/usr.sbin/pkg_add/OpenBSD/Delete.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Delete.pm,v 1.141 2014/11/27 14:15:48 espie Exp $ +# $OpenBSD: Delete.pm,v 1.142 2014/11/30 15:53:26 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org> # @@ -94,7 +94,7 @@ sub delete_package $plist->pkgname, $pkgname); } if ($plist->has('firmware')) { - if ($state->{interactive}) { + if ($state->is_interactive) { if (!$state->confirm("\nDelete firmware $pkgname", 0)) { $state->errsay("NOT deleting #1", $pkgname); return; |