# ex:ts=8 sw=4:
-# $OpenBSD: PackageInfo.pm,v 1.57 2014/01/07 13:37:23 espie Exp $
+# $OpenBSD: PackageInfo.pm,v 1.58 2014/01/07 13:52:43 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
our @EXPORT=qw(installed_packages installed_info installed_name info_names is_info_name installed_stems
lock_db unlock_db
add_installed delete_installed is_installed borked_package
- CONTENTS COMMENT DESC META
+ CONTENTS DESC META
REQUIRED_BY REQUIRING DISPLAY UNDISPLAY);
use OpenBSD::PackageName;
use OpenBSD::Paths;
use constant {
CONTENTS => '+CONTENTS',
- COMMENT => '+COMMENT',
DESC => '+DESC',
META => '+META',
REQUIRED_BY => '+REQUIRED_BY',
my ($list, $stemlist);
-our @info = (CONTENTS, COMMENT, DESC, META, REQUIRED_BY, REQUIRING, DISPLAY, UNDISPLAY);
+our @info = (CONTENTS, DESC, META, REQUIRED_BY, REQUIRING, DISPLAY, UNDISPLAY);
our %info = ();
for my $i (@info) {
# ex:ts=8 sw=4:
-# $OpenBSD: PackingElement.pm,v 1.223 2014/01/07 13:37:23 espie Exp $
+# $OpenBSD: PackingElement.pm,v 1.224 2014/01/07 13:52:43 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
sub may_verify_digest
{
}
-package OpenBSD::PackingElement::FCOMMENT;
-our @ISA=qw(OpenBSD::PackingElement::SpecialFile);
-sub name() { OpenBSD::PackageInfo::COMMENT }
-
-sub new
-{
- my ($self, @r) = @_;
- print STDERR "Warning: obsolete special file: +COMMENT\n";
- $self->SUPER::new(@r);
-}
package OpenBSD::PackingElement::FDESC;
our @ISA=qw(OpenBSD::PackingElement::SpecialFile);
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgInfo.pm,v 1.27 2013/01/18 21:19:36 espie Exp $
+# $OpenBSD: PkgInfo.pm,v 1.28 2014/01/07 13:52:43 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
my $_;
open my $fh, '<', $dir.DESC or return;
- $_ = <$fh> unless -f $dir.COMMENT;
+ $_ = <$fh>; # zap COMMENT
while(<$fh>) {
chomp;
$state->say("#1", $_);
sub get_comment
{
my $d = shift;
- return get_line(-f $d.COMMENT? $d.COMMENT : $d.DESC);
+ return get_line($d.DESC);
}
sub find_by_spec