diff options
author | 2010-07-11 07:27:25 +0000 | |
---|---|---|
committer | 2010-07-11 07:27:25 +0000 | |
commit | b5c9b1b8e2f3497c93d85b9c53b0223a5bcbfda0 (patch) | |
tree | 26994981ee493a03092a36fe0251cc2eefc97f50 | |
parent | tie back to bsd.port.mk, to make REVISION and EPOCH more obvious. (diff) | |
download | wireguard-openbsd-b5c9b1b8e2f3497c93d85b9c53b0223a5bcbfda0.tar.xz wireguard-openbsd-b5c9b1b8e2f3497c93d85b9c53b0223a5bcbfda0.zip |
display updateset name alongside collisionreport (turns out it's not
always obvious)
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/CollisionReport.pm | 9 | ||||
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/UpdateSet.pm | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/CollisionReport.pm b/usr.sbin/pkg_add/OpenBSD/CollisionReport.pm index 811d908c607..1dbc773e31c 100644 --- a/usr.sbin/pkg_add/OpenBSD/CollisionReport.pm +++ b/usr.sbin/pkg_add/OpenBSD/CollisionReport.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: CollisionReport.pm,v 1.37 2010/06/30 10:51:04 espie Exp $ +# $OpenBSD: CollisionReport.pm,v 1.38 2010/07/11 07:27:25 espie Exp $ # # Copyright (c) 2003-2006 Marc Espie <espie@openbsd.org> # @@ -56,9 +56,9 @@ sub find_collisions return $bypkg; } -sub collision_report($$) +sub collision_report { - my ($list, $state) = @_; + my ($list, $state, $set) = @_; my $destdir = $state->{destdir}; @@ -74,7 +74,8 @@ sub collision_report($$) my $clueless_bat2; my $found = 0; - $state->errsay("Collision: the following files already exist"); + $state->errsay("Collision in #1: the following files already exist", + $set->print); if (!$state->defines('dontfindcollisions')) { my $bypkg = find_collisions(\%todo, $state); for my $pkg (sort keys %$bypkg) { diff --git a/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm b/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm index f766b4f8bd3..38ee050d89f 100644 --- a/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm +++ b/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: UpdateSet.pm,v 1.60 2010/06/30 10:51:04 espie Exp $ +# $OpenBSD: UpdateSet.pm,v 1.61 2010/07/11 07:27:25 espie Exp $ # # Copyright (c) 2007-2010 Marc Espie <espie@openbsd.org> # @@ -298,7 +298,7 @@ sub validate_plists if (@{$state->{colliding}} > 0) { require OpenBSD::CollisionReport; - OpenBSD::CollisionReport::collision_report($state->{colliding}, $state); + OpenBSD::CollisionReport::collision_report($state->{colliding}, $state, $self); } if (defined $state->{overflow}) { $state->vstat->tally; |