summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-06-02 12:45:25 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-06-02 12:45:25 +0000
commitaf7bc5c25bffad219a11718c82e61505a28fcaf1 (patch)
treecadb97fe9bdf15dd3a1682e01d4f12d3a5057ce0 /usr.sbin/pkg_add
parentdd99f1f64cdf72938cd1523ceeeb94bc852da62c (diff)
remove elements of the solver that correspond to dependencies `in-transit'
since they're now recorded as true dependencies. (helps me think about future improvements)
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Dependencies.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Dependencies.pm b/usr.sbin/pkg_add/OpenBSD/Dependencies.pm
index 56f883f429e..6f51f6dba25 100644
--- a/usr.sbin/pkg_add/OpenBSD/Dependencies.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Dependencies.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Dependencies.pm,v 1.49 2007/06/02 12:37:37 espie Exp $
+# $OpenBSD: Dependencies.pm,v 1.50 2007/06/02 12:45:24 espie Exp $
#
# Copyright (c) 2005-2007 Marc Espie <espie@openbsd.org>
#
@@ -201,6 +201,8 @@ sub register_dependencies
for my $dep (@l) {
OpenBSD::RequiredBy->new($dep)->add($pkgname);
}
+ delete $self->{toregister};
+ delete $self->{deplist};
}
sub record_old_dependencies