summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-06-07 13:51:20 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-06-07 13:51:20 +0000
commit1730cfbaac76a7d57ca69939b71374c56eaa035c (patch)
tree60ef1776edd5aaf20aaa376ff3595e411f710c18
parentc1c40d5fce57e39fbfc06d3e5ce077d0c1793fe1 (diff)
display "switching to" with ->set_status
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgCreate.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
index 13e08e4aa39..ef2be252acb 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCreate.pm,v 1.5 2010/06/06 11:00:40 espie Exp $
+# $OpenBSD: PkgCreate.pm,v 1.6 2010/06/07 13:51:19 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
@@ -461,10 +461,12 @@ sub deduce_name
die "Missing fragments for $frag: $o and $noto don't exist";
}
if ($not) {
- print "Switching to $noto\n" if !defined $state->opt('q');
+ $state->set_status("switching to $noto")
+ if !defined $state->opt('q');
return $noto if -e $noto;
} else {
- print "Switching to $o\n" if !defined $state->opt('q');
+ $state->set_status("switching to $o")
+ if !defined $state->opt('q');
return $o if -e $o;
}
return;