summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2018-06-26 09:42:19 +0000
committerMarc Espie <espie@cvs.openbsd.org>2018-06-26 09:42:19 +0000
commitfddcefb44c181636bc0ce9cead13d3fac93ce83d (patch)
treefed05409ca9b59b6962e7314aa52a97e10e4ea7b
parent6fafc82c585a5ea16f7b441035969ac6aaf69fa3 (diff)
kill the solve_tags part of pkg_create for now, as it doesn't work at all
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgCreate.pm31
1 files changed, 2 insertions, 29 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
index 3d47818cefe..77578edc373 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCreate.pm,v 1.150 2018/06/24 12:44:38 espie Exp $
+# $OpenBSD: PkgCreate.pm,v 1.151 2018/06/26 09:42:18 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
@@ -881,8 +881,7 @@ sub solve_all_depends
if (@todo == 0) {
return;
}
- if ($solver->solve_wantlibs($state, 0) &&
- $solver->solve_tags($state, 0)) {
+ if ($solver->solve_wantlibs($state, 0)) {
return;
}
$solver->{set}->add_new(@todo);
@@ -912,29 +911,6 @@ sub solve_wantlibs
return $okay;
}
-sub solve_tags
-{
- my ($solver, $state, $final) = @_;
- return 1;
-
- my $okay = 1;
- my $h = $solver->{set}{new}[0];
- my $plist = $h->{plist};
- return 1 if !defined $plist->{tags};
- for my $tag (@{$plist->{tags}}) {
- $solver->{tag_finder}->lookup($solver,
- $solver->{to_register}{$h}, $state, $tag) ||
- $solver->find_in_self($plist, $state, $tag);
- if (!$solver->verify_tag($tag, $state, $plist)) {
- $okay = 0;
- }
- }
- if (!$okay && $final) {
- $solver->dump($state);
- }
- return $okay;
-}
-
sub really_solve_dependency
{
my ($self, $state, $dep, $package) = @_;
@@ -1496,9 +1472,6 @@ sub check_dependencies
if (!$solver->solve_wantlibs($state, 1)) {
$state->{bad}++;
}
- if (!$solver->solve_tags($state, 1)) {
- $state->{bad}++;
- }
}
sub finish_manpages