From 1a5391eca944d7da3e88e01f2887266d0a75e5dd Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Mon, 20 Dec 2010 09:41:45 +0000 Subject: split solver class into a base that can be reused from pkgcreate. --- usr.sbin/pkg_add/OpenBSD/Dependencies.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pkg_add/OpenBSD/Dependencies.pm b/usr.sbin/pkg_add/OpenBSD/Dependencies.pm index 514666efa0b..f20148619f0 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.144 2010/12/20 09:38:40 espie Exp $ +# $OpenBSD: Dependencies.pm,v 1.145 2010/12/20 09:41:44 espie Exp $ # # Copyright (c) 2005-2010 Marc Espie # @@ -308,7 +308,7 @@ sub clone } } -package OpenBSD::Dependencies::Solver; +package OpenBSD::Dependencies::SolverBase; our @ISA = qw(OpenBSD::Cloner); my $global_cache = {}; @@ -463,6 +463,9 @@ sub find_in_installed return $self->find_candidate($dep, @{$self->installed_list}); } +package OpenBSD::Dependencies::Solver; +our @ISA = qw(OpenBSD::Dependencies::SolverBase); + sub add_dep { my ($self, $d) = @_; -- cgit v1.2.3