summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Add.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-06-01 14:58:30 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-06-01 14:58:30 +0000
commit34efd479fa8bad945ccf900ff7b2ea62520b5ab9 (patch)
tree45fa87d5e13357c168aceffa96b66199b0fd125e /usr.sbin/pkg_add/OpenBSD/Add.pm
parent323bb16b2bd94d254e8211d526fa04629fb1aec7 (diff)
refactor ProgressMeter code to create objects, put these into state.
Create a common state class for delete and add, put the progressmeter creation in there. neat effect: we don't have a progressmeter, we use a stub class instead and *never* pull the code in at all.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Add.pm')
-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 17944b11e3d..d22e2a76361 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.68 2007/05/31 11:05:41 espie Exp $
+# $OpenBSD: Add.pm,v 1.69 2007/06/01 14:58:29 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -128,7 +128,7 @@ sub install_and_progress
if ($state->{interrupted}) {
die "Interrupted";
}
- $self->mark_progress($donesize, $totsize);
+ $self->mark_progress($state->progress, $donesize, $totsize);
}
sub install