summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Add.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-06-12 09:53:37 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-06-12 09:53:37 +0000
commitf5ea31f35648f76e28be8218284ea696380dec74 (patch)
tree0280077a655a023ec2ab4dd1ac8554eaa7d41c92 /usr.sbin/pkg_add/OpenBSD/Add.pm
parent5d44a7a1991e292bfc38c019d99817638bc703fa (diff)
tidy error messages: uses $! more consistently, do not append \n on die,
do append \n on warn. Fix the two cases where the temp dir vanished too soon: not copying +DESC should have been apparent. Not finding a +DISPLAY file is not a reason for burping all over the place.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Add.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Add.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm
index 99ca49ef26b..a2885f3e54b 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.76 2007/06/09 13:39:31 espie Exp $
+# $OpenBSD: Add.pm,v 1.77 2007/06/12 09:53:36 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -662,7 +662,9 @@ sub copy_info
my ($self, $dest) = @_;
require File::Copy;
- File::Copy::move($self->fullname, $dest);
+ File::Copy::move($self->fullname, $dest) or
+ print STDERR "Problem while moving ", $self->fullname,
+ " into $dest: $!\n";
}
package OpenBSD::PackingElement::FINSTALL;