diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-11-09 11:11:02 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-11-09 11:11:02 +0000 |
commit | 02fedf39c4f3da4aca18823fd252db9af696163a (patch) | |
tree | b2ae41289fdfc769f1c3aa1bed56f3426a6c99b6 /usr.sbin/pkg_add/pkg_delete | |
parent | f290eeb50e6d56eefc023de41cf321783f2e136c (diff) |
kill old Logger interface, use $state->print() to report problems at
end exclusively now.
Diffstat (limited to 'usr.sbin/pkg_add/pkg_delete')
-rw-r--r-- | usr.sbin/pkg_add/pkg_delete | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/usr.sbin/pkg_add/pkg_delete b/usr.sbin/pkg_add/pkg_delete index 1154a54eedc..6f6e0496347 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.68 2004/11/07 11:39:10 espie Exp $ +# $OpenBSD: pkg_delete,v 1.69 2004/11/09 11:11:01 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -22,7 +22,6 @@ use OpenBSD::Getopt; use OpenBSD::PackingList; use OpenBSD::PackingOld; use OpenBSD::RequiredBy; -use OpenBSD::Logger; use OpenBSD::Error; use OpenBSD::ProgressMeter; use OpenBSD::Delete; @@ -119,8 +118,6 @@ for my $pkgname (@realnames) { push(@todo, @realnames); -OpenBSD::Logger::log_as("pkg_delete"); - while (my $pkgname = pop @todo) { my $deps = OpenBSD::RequiredBy->new($pkgname)->list(); if (@$deps > 0) { @@ -152,7 +149,6 @@ $state->{destdir} = $opt_B; if ($opt_B eq '') { $state->{destdirname} = ''; } else { - OpenBSD::Logger::annotate("PKG_DESTDIR=\"$opt_B\"; export PKG_DESTDIR\n"); $state->{destdirname} = '${PKG_DESTDIR}'; } @@ -199,10 +195,6 @@ if (defined $state->{dirs_to_rm} or defined $state->{users_to_rm} or OpenBSD::PackingElement::Fontdir::finish_fontdirs(); -my $logname = OpenBSD::Logger::logname(); -if (defined $logname) { - print "Problems logged as $logname\n"; -} if ($state->{beverbose}) { OpenBSD::Vstat::tally(); } |