diff options
author | 2006-05-04 08:36:07 +0000 | |
---|---|---|
committer | 2006-05-04 08:36:07 +0000 | |
commit | 1c9bf27f2fc5d114fa1c8c5324b5d475fd2671bf (patch) | |
tree | 957593372df8978c302b214c2635afcc37525ef9 | |
parent | finish work wrt TMPDIR; use xasprintf() to simplify code while in there; (diff) | |
download | wireguard-openbsd-1c9bf27f2fc5d114fa1c8c5324b5d475fd2671bf.tar.xz wireguard-openbsd-1c9bf27f2fc5d114fa1c8c5324b5d475fd2671bf.zip |
more clues for people who update their system.
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/CollisionReport.pm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/CollisionReport.pm b/usr.sbin/pkg_add/OpenBSD/CollisionReport.pm index 45a498632ca..4412c523195 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.8 2006/02/06 21:55:58 espie Exp $ +# $OpenBSD: CollisionReport.pm,v 1.9 2006/05/04 08:36:07 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -29,6 +29,7 @@ sub collision_report($$) my %todo = map {($_->fullname(), $_->{md5})} @$list; my $bypkg = {}; my $clueless_bat = 0; + my $clueless_bat2 = 0; print "Collision: the following files already exist\n"; for my $name (keys %todo) { @@ -67,6 +68,9 @@ sub collision_report($$) if ($pkg =~ m/^(?:partial\-|borked\.\d+$)/) { $clueless_bat = $pkg; } + if ($pkg =~ m/^\.libs-*$/) { + $clueless_bat2 = $pkg; + } } if (%todo) { require OpenBSD::md5; @@ -91,6 +95,12 @@ sub collision_report($$) print "\tpkg_delete $clueless_bat\n"; print "will solve the problem\n"; } + if ($clueless_bat2) { + print "The package name $clueless_bat2 suggests remaining libraries\n"; + print "from a former package update. It is likely that\n"; + print "\tpkg_delete $clueless_bat2\n"; + print "will solve the problem\n"; + } } 1; |