From ea9a8816b779692801a49aeccf42395dc82dd521 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Wed, 6 Jun 2007 15:35:21 +0000 Subject: finish moving the size computations out of validate_plist. --- usr.sbin/pkg_add/OpenBSD/Delete.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/pkg_add/OpenBSD/Delete.pm') diff --git a/usr.sbin/pkg_add/OpenBSD/Delete.pm b/usr.sbin/pkg_add/OpenBSD/Delete.pm index b55f5ab1800..653199bb734 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.64 2007/06/06 15:31:06 espie Exp $ +# $OpenBSD: Delete.pm,v 1.65 2007/06/06 15:35:20 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie # @@ -85,7 +85,6 @@ sub validate_plist my ($plist, $state) = @_; $plist->prepare_for_deletion($state, $plist->pkgname); - return $plist->compute_size; } sub remove_packing_info @@ -117,6 +116,7 @@ sub delete_package $state->{problems} = 0; validate_plist($plist, $state); + $plist->compute_size; Fatal "fatal issues in deinstalling $pkgname" if $state->{problems}; OpenBSD::Vstat::synchronize(); -- cgit v1.2.3