diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-12-06 21:55:02 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-12-06 21:55:02 +0000 |
commit | c903c730ac162bc88fa54468b694b4313eae7507 (patch) | |
tree | 7d7e5b04ec9d330d287e64e11302308d55d0d323 /usr.sbin | |
parent | f9cb54a7a4bb2711c0d028cc82fb05770fb11e0f (diff) |
explicit clue() for people running 3.6 packages with current pkg_add.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/pkg_add | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add index a0e1af008ab..f6f73c1556a 100644 --- a/usr.sbin/pkg_add/pkg_add +++ b/usr.sbin/pkg_add/pkg_add @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_add,v 1.133 2004/12/06 12:35:36 espie Exp $ +# $OpenBSD: pkg_add,v 1.134 2004/12/06 21:55:01 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -521,6 +521,13 @@ sub lookup_library print "\n" if $state->{very_verbose}; } +sub clue +{ + Warn "Maybe it's in a dependent package, but not tagged with \@lib ?\n"; + Warn "(check with pkg_info -K -L)\n"; + Warn "If you are still running 3.6 packages, update them.\n"; +} + sub install_package { @@ -583,6 +590,7 @@ sub install_package if (!lookup_library($state, $spec, $plist, $handle->{solved_dependencies}, 0)) { Warn "Can't install $pkg: lib not found $spec\n"; + clue(); return () unless $forced{libdepends}; } } @@ -591,6 +599,7 @@ sub install_package if (!lookup_library($state, $lib->{name}, $plist, $handle->{solved_dependencies}, 1)) { Warn "Can't install $pkg: lib not found ", $lib->{name}, "\n"; + clue(); return () unless $forced{libdepends}; } } |