diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2014-11-21 15:07:10 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2014-11-21 15:07:10 +0000 |
commit | 32fc7a72fe52f879f566613a6779635b04149d9e (patch) | |
tree | 33dd3263a1d34bfc89ee21fb375579cefe94bbfe /usr.sbin/pkg_add/OpenBSD/PkgAdd.pm | |
parent | 18e6d7ce4c8f9ec5c0be694bdd93f6163bee2821 (diff) |
a long time ago, DISPLAY and UNDISPLAY required special treatment, as they
were displayed "on the fly". But prepare+log means the display happens later
in any case, so they can be done as part of regular plist.
Also, mark known manpage dirs for even more verbiage reduction...
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PkgAdd.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgAdd.pm | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm b/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm index d6ffc984b71..9a3a79f5cc7 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgAdd.pm,v 1.75 2014/11/20 15:08:21 espie Exp $ +# $OpenBSD: PkgAdd.pm,v 1.76 2014/11/21 15:07:09 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org> # @@ -736,10 +736,6 @@ sub delete_old_packages require OpenBSD::Delete; try { OpenBSD::Delete::delete_plist($o->plist, $state); - if ($o->plist->has(DISPLAY)) { - my $d = $o->plist->get(DISPLAY)->{d}; - $state->{known_displays}{$$d} = 1; - } } catchall { $state->errsay($_); $state->fatal(partial_install( @@ -816,10 +812,6 @@ sub really_add try { OpenBSD::Add::perform_extraction($handle, $state); - if ($handle->plist->has(UNDISPLAY)) { - my $d = $handle->plist->get(UNDISPLAY)->{d}; - $state->{known_displays}{$$d} = 1; - } } catchall { unless ($state->{interrupted}) { $state->errsay($_); @@ -871,12 +863,6 @@ sub really_add add_installed($pkgname); delete $handle->{partial}; OpenBSD::PkgCfl::register($handle, $state); - if ($plist->has(DISPLAY)) { - my $d = $plist->get(DISPLAY)->{d}; - if (!$state->{known_displays}{$$d}) { - $plist->get(DISPLAY)->prepare($state); - } - } } delete $state->{partial}; $set->{solver}->register_dependencies($state); |