diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-10-11 10:30:35 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-10-11 10:30:35 +0000 |
commit | e9b4c319437436b6db94ace949e6542a60232155 (patch) | |
tree | cc93e3ca64b010b4f6634342c5ea44bf1e7e31c5 /usr.sbin/pkg_add/OpenBSD | |
parent | 05d837490dc662c46a9ba9e3a0e2a7fed97e446a (diff) |
add support for undisplay file, to be able to show information at pkg
removal without having to run a DEINSTALL script...
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageInfo.pm | 7 | ||||
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingElement.pm | 6 |
2 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm b/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm index c5da0fd09c1..6ee56a1e512 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackageInfo.pm,v 1.8 2004/10/11 10:07:37 espie Exp $ +# $OpenBSD: PackageInfo.pm,v 1.9 2004/10/11 10:30:34 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -21,7 +21,7 @@ package OpenBSD::PackageInfo; our @ISA=qw(Exporter); our @EXPORT=qw(installed_packages installed_info installed_name info_names is_info_name add_installed delete_installed is_installed borked_package CONTENTS COMMENT DESC INSTALL DEINSTALL REQUIRE - REQUIRED_BY DISPLAY MTREE_DIRS); + REQUIRED_BY DISPLAY UNDISPLAY MTREE_DIRS); use OpenBSD::PackageName; use constant { @@ -33,13 +33,14 @@ use constant { REQUIRE => '+REQUIRE', REQUIRED_BY => '+REQUIRED_BY', DISPLAY => '+DISPLAY', + UNDISPLAY => '+UNDISPLAY', MTREE_DIRS => '+MTREE_DIRS' }; my $pkg_db = $ENV{"PKG_DBDIR"} || '/var/db/pkg'; our $list; -our @info = (CONTENTS, COMMENT, DESC, REQUIRE, INSTALL, DEINSTALL, REQUIRED_BY, DISPLAY, MTREE_DIRS); +our @info = (CONTENTS, COMMENT, DESC, REQUIRE, INSTALL, DEINSTALL, REQUIRED_BY, DISPLAY, UNDISPLAY, MTREE_DIRS); our %info = (); for my $i (@info) { diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm index 62d0ac24920..a6328086e07 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackingElement.pm,v 1.47 2004/10/05 20:37:03 espie Exp $ +# $OpenBSD: PackingElement.pm,v 1.48 2004/10/11 10:30:34 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -1093,6 +1093,10 @@ package OpenBSD::PackingElement::FDISPLAY; our @ISA=qw(OpenBSD::PackingElement::SpecialFile); sub category() { OpenBSD::PackageInfo::DISPLAY } +package OpenBSD::PackingElement::FUNDISPLAY; +our @ISA=qw(OpenBSD::PackingElement::SpecialFile); +sub category() { OpenBSD::PackageInfo::UNDISPLAY } + package OpenBSD::PackingElement::FMTREE_DIRS; our @ISA=qw(OpenBSD::PackingElement::SpecialFile); sub category() { OpenBSD::PackageInfo::MTREE_DIRS } |