summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Update.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-11-27 16:38:27 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-11-27 16:38:27 +0000
commitb2efdd909dfd7bce0e5879e64c5dea22cbc52489 (patch)
treef963c5c0cbde724c69da4004d92bf6a00e0114c2 /usr.sbin/pkg_add/OpenBSD/Update.pm
parent6c12f6bfc5d9c997fe6c79902239ac9da8b0b0a2 (diff)
tweak very verbose output.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Update.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Update.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm
index 5763c348147..2187f6a0699 100644
--- a/usr.sbin/pkg_add/OpenBSD/Update.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Update.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Update.pm,v 1.35 2004/11/27 14:02:50 espie Exp $
+# $OpenBSD: Update.pm,v 1.36 2004/11/27 16:38:26 espie Exp $
#
# Copyright (c) 2004 Marc Espie <espie@openbsd.org>
#
@@ -384,9 +384,9 @@ sub save_old_libraries
$old_plist->visit('mark_lib', $libs, $p);
$new_plist->visit('unmark_lib', $libs, $p);
- print "Libraries to keep: ", join(",", sort(keys %$libs)), "\n"
- if $state->{beverbose};
if (%$libs) {
+ print "Libraries to keep: ", join(",", sort(keys %$libs)), "\n"
+ if $state->{beverbose};
my $stub_list = split_libs($old_plist, $libs);
my $stub_name = $stub_list->pkgname();
my $dest = installed_info($stub_name);
@@ -407,6 +407,8 @@ sub save_old_libraries
add_installed($stub_name);
walk_depends_closure($old_plist->pkgname(), $stub_name, $state);
+ } else {
+ print "No libraries to keep\n" if $state->{beverbose};
}
}