summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Add.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-08-05 09:52:09 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-08-05 09:52:09 +0000
commit9c25bd59d9d3d93f2d47e1c26b369d7bd4ffef44 (patch)
tree798a5796fa9f9113fd68bb89b89212e178d822da /usr.sbin/pkg_add/OpenBSD/Add.pm
parent400d64312730e892379e4943f8a1697488b48406 (diff)
Make sure $totsize != 0, even if the package does not contain any actual
files, so that the progress meter will work.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Add.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Add.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm
index 7a8839f539f..5b86a5efb91 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.33 2005/06/21 19:12:31 espie Exp $
+# $OpenBSD: Add.pm,v 1.34 2005/08/05 09:52:08 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -125,6 +125,7 @@ sub validate_plist($$)
OpenBSD::CollisionReport::collision_report($colliding, $state);
}
Fatal "fatal issues in installing $pkgname" if $problems;
+ $totsize = 1 if $totsize == 0;
return $totsize;
}