diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-12-20 09:41:45 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-12-20 09:41:45 +0000 |
commit | 1a5391eca944d7da3e88e01f2887266d0a75e5dd (patch) | |
tree | c1a7085919591417e2699fb54bf7bd5c40dbcfce | |
parent | 0cd7d7fcbbdce889ac8dc906de520589ea90e895 (diff) |
split solver class into a base that can be reused from pkgcreate.
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Dependencies.pm | 7 |
1 files 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 <espie@openbsd.org> # @@ -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) = @_; |