summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-08-13 16:46:36 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-08-13 16:46:36 +0000
commitd02c4807d0214c092a60d35eb2539ee65349581f (patch)
tree6af336435fdba2a6c9caa3e2853eb4e33689bb14 /usr.sbin
parent8cbe24b2f741dd3e2ac063d8ee1535ba3d38ac63 (diff)
symlinks and hardlinks do not have an md5
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Add.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm
index 36a335d6ee3..b59da32396b 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.36 2005/08/13 15:47:57 espie Exp $
+# $OpenBSD: Add.pm,v 1.37 2005/08/13 16:46:35 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -142,7 +142,7 @@ sub borked_installation
# last file may have not copied correctly
my $last = $plist->{items}->[@{$plist->{items}}-1];
- if ($last->IsFile()) {
+ if ($last->IsFile() && defined($last->{md5})) {
require OpenBSD::md5;
my $old = $last->{md5};