summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Dependencies.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2018-06-15 09:39:04 +0000
committerMarc Espie <espie@cvs.openbsd.org>2018-06-15 09:39:04 +0000
commitcb307fa3292760d815f3c91a0d0b130d50691bf5 (patch)
treea4d59a27673a513de8a17859fd70292241b44442 /usr.sbin/pkg_add/OpenBSD/Dependencies.pm
parent2242f7aa0442b65a319b8915eda6140589021721 (diff)
no need to always use 1 for the constant, knowing how it got solved can
be fairly useful while debugging.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Dependencies.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Dependencies.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Dependencies.pm b/usr.sbin/pkg_add/OpenBSD/Dependencies.pm
index 9897c50dbf1..1d86ecdf842 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.158 2018/02/13 15:04:54 espie Exp $
+# $OpenBSD: Dependencies.pm,v 1.159 2018/06/15 09:39:03 espie Exp $
#
# Copyright (c) 2005-2010 Marc Espie <espie@openbsd.org>
#
@@ -47,12 +47,12 @@ sub lookup
}
$known->{$dep} = 1;
if ($self->find_in_new_source($solver, $state, $obj, $dep)) {
- $dependencies->{$dep} = 1;
+ $dependencies->{$dep} = 2;
return 1;
}
}
if (my $r = $self->find_elsewhere($solver, $state, $obj)) {
- $dependencies->{$r} = 1;
+ $dependencies->{$r} = 3;
return 1;
}