summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Update.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-08-16 18:37:07 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-08-16 18:37:07 +0000
commitdab7f06e4389239b48e816ad1a29161832943619 (patch)
treead4ce12b50ae27005fb9f5276b3ca55081d85003 /usr.sbin/pkg_add/OpenBSD/Update.pm
parent8a1e9ab9f5f947753d9beb48d70251e4d9450c07 (diff)
avoid computing signature twice!
slightly more verbose message.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Update.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Update.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm
index dc32889de4e..75bbf49b7ea 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.53 2005/08/10 12:10:26 espie Exp $
+# $OpenBSD: Update.pm,v 1.54 2005/08/16 18:37:06 espie Exp $
#
# Copyright (c) 2004 Marc Espie <espie@openbsd.org>
#
@@ -503,10 +503,9 @@ sub is_needed
$oplist->visit('build_context', $old_context);
my $n = join(',', sort keys %$new_context);
my $o = join(',', sort keys %$old_context);
- print "Comparing full signature \"$o\" vs. \"$n\"\n"
+ print "Comparing full signature for ", $plist->pkgname(), " \"$o\" vs. \"$n\": ", $n eq $o ? "equal\n" : "different\n"
if $state->{very_verbose};
- return join(',', sort keys %$new_context) ne
- join(',', sort keys %$old_context);
+ return $n ne $o;
}
sub figure_out_libs