diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-11-11 13:00:41 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-11-11 13:00:41 +0000 |
commit | 422268542ca88652293dd2ac18b11f2cf469142d (patch) | |
tree | 1d32de192b76e8393747adcaf755821207416eb0 /usr.sbin/pkg_add/OpenBSD/SharedItems.pm | |
parent | 88f15ea5bcc548441e3b1f24c3b74e85c821d54d (diff) |
vsystem, system, unlink can mostly go through state, and do the ->clear part
as well.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/SharedItems.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/SharedItems.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/SharedItems.pm b/usr.sbin/pkg_add/OpenBSD/SharedItems.pm index 51e9234b0a3..b1ec0be7eab 100644 --- a/usr.sbin/pkg_add/OpenBSD/SharedItems.pm +++ b/usr.sbin/pkg_add/OpenBSD/SharedItems.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: SharedItems.pm,v 1.15 2009/11/11 11:13:16 espie Exp $ +# $OpenBSD: SharedItems.pm,v 1.16 2009/11/11 13:00:40 espie Exp $ # # Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org> # @@ -88,7 +88,7 @@ sub cleanup $state->progress->show($done, $total); next if $remaining->{users}->{$user}; if ($state->{extra}) { - System(OpenBSD::Paths->userdel, $user); + $state->system(OpenBSD::Paths->userdel, $user); } else { $state->log->set_context($pkgname); $state->log("You should also run /usr/sbin/userdel $user\n"); @@ -101,7 +101,7 @@ sub cleanup $state->progress->show($done, $total); next if $remaining->{groups}->{$group}; if ($state->{extra}) { - System(OpenBSD::Paths->groupdel, $group); + $state->system(OpenBSD::Paths->groupdel, $group); } else { $state->log->set_context($pkgname); $state->log("You should also run /usr/sbin/groupdel $group\n"); |