From 436b6f1d3ce3d3fb93b58aa7626f54e74b04e94c Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Sat, 22 Jan 2005 13:00:36 +0000 Subject: do not clean-up shared items in pretend mode (for now, need extra logic to pretend cleaning it up). --- usr.sbin/pkg_add/pkg_delete | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/pkg_add/pkg_delete') diff --git a/usr.sbin/pkg_add/pkg_delete b/usr.sbin/pkg_add/pkg_delete index 977b16b1378..54cc17fcf42 100644 --- a/usr.sbin/pkg_add/pkg_delete +++ b/usr.sbin/pkg_add/pkg_delete @@ -1,6 +1,6 @@ #!/usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_delete,v 1.86 2005/01/14 02:25:12 espie Exp $ +# $OpenBSD: pkg_delete,v 1.87 2005/01/22 13:00:35 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie # @@ -225,7 +225,7 @@ if (defined $state->{dirs_to_rm} or defined $state->{users_to_rm} or defined $state->{groups_to_rm}) { require OpenBSD::SharedItems; - OpenBSD::SharedItems::cleanup($state); + OpenBSD::SharedItems::cleanup($state) unless $state->{not}; } OpenBSD::PackingElement::Fontdir::finish_fontdirs($state); -- cgit v1.2.3