diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-06-01 22:35:48 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-06-01 22:35:48 +0000 |
commit | aa4bec8342bc433b9cc45237f416706fac18736e (patch) | |
tree | 4a41a19ee6f832868e291b45957f4c5f221019ee /usr.sbin/pkg_add/OpenBSD/Replace.pm | |
parent | d15c9890e9f728d449db02f4111216999416bb66 (diff) |
very small clean-up of dependencies list handling.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Replace.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Replace.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Replace.pm b/usr.sbin/pkg_add/OpenBSD/Replace.pm index 829bfaca859..1991c8bef1b 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.29 2007/06/01 22:06:03 espie Exp $ +# $OpenBSD: Replace.pm,v 1.30 2007/06/01 22:35:46 espie Exp $ # # Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org> # @@ -374,8 +374,7 @@ sub walk_depends_closure print "\t$pkg2\n" if $state->{beverbose}; $done->{$pkg2} = 1; $write->add($pkg2); - my $l = OpenBSD::Requiring->new($pkg2); - $l->add($name); + OpenBSD::Requiring->new($pkg2)->add($name); $depend = 1; } } |