summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-10-15 22:32:14 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-10-15 22:32:14 +0000
commita51967045e18f04ba49e564436ca760cab87bcf5 (patch)
treef9723cf26e51c875088108368d6b641900df59c0 /usr.sbin
parentd68bdbd180a959a35090b3cacd98e881bb7f45dd (diff)
sync updatesets with tracker when we create them...
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Dependencies.pm13
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Dependencies.pm b/usr.sbin/pkg_add/OpenBSD/Dependencies.pm
index a6760a4bef7..53290201cc6 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.75 2009/10/15 22:21:25 espie Exp $
+# $OpenBSD: Dependencies.pm,v 1.76 2009/10/15 22:32:13 espie Exp $
#
# Copyright (c) 2005-2007 Marc Espie <espie@openbsd.org>
#
@@ -282,14 +282,19 @@ sub solve_dependency
$v = $self->find_dep_in_repositories($state, $dep);
if ($v) {
- push(@{$self->{deplist}},
- OpenBSD::UpdateSet->from_location($v));
+ my $s = OpenBSD::UpdateSet->from_location($v);
+
+ $state->{tracker}->add_set($s);
+
+ push(@{$self->{deplist}}, $s);
return $v->{name};
}
# resort to default if nothing else
$v = $dep->{def};
- push(@{$self->{deplist}}, OpenBSD::UpdateSet->create_new($v));
+ my $s = OpenBSD::UpdateSet->create_new($v);
+ $state->{tracker}->add_set($s);
+ push(@{$self->{deplist}}, $s);
return $v;
}