summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-10-11 11:01:45 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-10-11 11:01:45 +0000
commit31d581b1bc6b3376e496715e1fb6dd7289fa59df (patch)
tree3a908fa916412cae1ceb07e7ba216149911b5665
parent3d659be558cf580e9fbe9b7a00816331d1fdd3af (diff)
overlay extract/delete/install messages, for shorter reports in normal mode
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Delete.pm4
-rw-r--r--usr.sbin/pkg_add/pkg_add5
2 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Delete.pm b/usr.sbin/pkg_add/OpenBSD/Delete.pm
index 1d87fe078a3..23fa4596612 100644
--- a/usr.sbin/pkg_add/OpenBSD/Delete.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Delete.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Delete.pm,v 1.81 2009/04/19 14:58:32 espie Exp $
+# $OpenBSD: Delete.pm,v 1.82 2009/10/11 11:01:44 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -115,6 +115,7 @@ sub delete_package
OpenBSD::Vstat::synchronize();
delete_plist($plist, $state);
+ $state->progress->next;
}
sub unregister_dependencies
@@ -147,7 +148,6 @@ sub delete_plist
$plist->register_manpage($state);
manpages_unindex($state);
$plist->delete_and_progress($state, \$donesize, $totsize);
- $state->progress->next;
if ($plist->has(UNDISPLAY)) {
$plist->get(UNDISPLAY)->prepare($state);
}
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add
index a4946300fea..bc6f72cbad1 100644
--- a/usr.sbin/pkg_add/pkg_add
+++ b/usr.sbin/pkg_add/pkg_add
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg_add,v 1.337 2009/10/11 10:49:05 espie Exp $
+# $OpenBSD: pkg_add,v 1.338 2009/10/11 11:01:44 espie Exp $
#
# Copyright (c) 2003-2009 Marc Espie <espie@openbsd.org>
#
@@ -448,7 +448,7 @@ sub really_add
$errors++;
}
};
- $state->progress->next;
+ $state->progress->clear;
if ($state->{interrupted} || $errors) {
Fatal partial_install("Installation of $pkgname failed",
$set, $state);
@@ -473,6 +473,7 @@ sub really_add
delete $state->{updatedepends}->{$oldname};
}
OpenBSD::PkgCfl::unregister($o->{plist}, $state);
+ $state->progress->clear;
}
# Here there should be code to handle old libs