diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-12-29 13:03:06 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-12-29 13:03:06 +0000 |
commit | 2fe6aceb5a332ca15a1371e80002dd4e200a4390 (patch) | |
tree | 20226cfab674c46dab1f7d752c1cc351b52e570c /usr.sbin/pkg_add/OpenBSD/Add.pm | |
parent | b535eaad07436596fbb5fc44e9b2729d07857346 (diff) |
more stuff that uses print directly dies
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Add.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Add.pm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm index 9f0275086f2..2b9c3c77afd 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.118 2010/12/24 09:09:54 espie Exp $ +# $OpenBSD: Add.pm,v 1.119 2010/12/29 13:03:05 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -50,11 +50,11 @@ sub manpages_index sub register_installation { - my $plist = shift; - return if $main::not; + my ($plist, $state) = @_; + return if $state->{not}; my $dest = installed_info($plist->pkgname); mkdir($dest); - $plist->copy_info($dest); + $plist->copy_info($dest, $state); $plist->set_infodir($dest); $plist->to_installation; } @@ -687,12 +687,12 @@ sub prepare_for_addition sub copy_info { - my ($self, $dest) = @_; + my ($self, $dest, $state) = @_; require File::Copy; File::Copy::move($self->fullname, $dest) or - print STDERR "Problem while moving ", $self->fullname, - " into $dest: $!\n"; + $state->errsay("Problem while moving #1 into #2: #3", + $self->fullname, $dest, $!); } package OpenBSD::PackingElement::FINSTALL; |