diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-12-29 20:34:11 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-12-29 20:34:11 +0000 |
commit | 01e6da03d2c645a57b84d2fb233b026f071c54f4 (patch) | |
tree | fee2f1b7a67f96618b4a979070c6a90cf8b7e897 /usr.sbin/pkg_add/OpenBSD/Replace.pm | |
parent | 4024d8e683456c224316d344397f12e85ebe2290 (diff) |
temporary fix for .libs update issue.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Replace.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Replace.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Replace.pm b/usr.sbin/pkg_add/OpenBSD/Replace.pm index 21a99a621fa..322b9e2fe0c 100644 --- a/usr.sbin/pkg_add/OpenBSD/Replace.pm +++ b/usr.sbin/pkg_add/OpenBSD/Replace.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Replace.pm,v 1.66 2009/12/28 21:30:09 espie Exp $ +# $OpenBSD: Replace.pm,v 1.67 2009/12/29 20:34:10 espie Exp $ # # Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org> # @@ -379,7 +379,10 @@ sub adjust_depends_closure for my $pkg (OpenBSD::RequiredBy->compute_closure($oldname)) { $state->say("\t", $pkg) if $state->verbose >= 3; $write->add($pkg); - OpenBSD::Requiring->new($pkg)->add($plist->pkgname); + my $r = OpenBSD::Requiring->new($pkg)->add($plist->pkgname); + if ($oldname =~ m/^\.libs\d*\-/o) { + $r->delete($oldname); + } } } |