summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-11-11 11:18:25 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-11-11 11:18:25 +0000
commit5faa044d32965d87c9502fe63ba3bcb2c91b1ca7 (patch)
tree5da8ef90b0ad8816ff46d3e43a9e4759286f8c82
parentff6780c1ae7637bd22cd6c04ea140e97df7585af (diff)
state->progress->print => $state->print
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageInfo.pm4
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Update.pm4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm b/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm
index 723ed8f918e..2bec8fb57e6 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackageInfo.pm,v 1.41 2009/11/10 11:36:56 espie Exp $
+# $OpenBSD: PackageInfo.pm,v 1.42 2009/11/11 11:18:24 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -256,7 +256,7 @@ sub solve_installed_names
if ($state->{defines}->{ambiguous}) {
my @l = map {$_->name} @$r;
- $state->progress->print("Ambiguous: $pkgname could be ", join(' ', @l),"\n");
+ $state->print("Ambiguous: $pkgname could be ", join(' ', @l),"\n");
print "$msg\n";
push(@$new, @l);
for my $p (@$r) {
diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm
index 53b5dfd42a6..261656fa470 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.91 2009/11/10 11:36:56 espie Exp $
+# $OpenBSD: Update.pm,v 1.92 2009/11/11 11:18:24 espie Exp $
#
# Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org>
#
@@ -126,7 +126,7 @@ sub process_handle
}
}
- $state->progress->print("Candidates for updating $pkgname -> ", join(' ', map {$_->name} @$l), "\n");
+ $state->print("Candidates for updating $pkgname -> ", join(' ', map {$_->name} @$l), "\n");
my $r = $state->choose_location($pkgname, $l);
if (defined $r) {