summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg_create
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-01 18:46:03 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-01 18:46:03 +0000
commit6df22bec0785ffd54a2f4233e9a6238ac919c4ab (patch)
tree23714e2c77a282f0681e35bd0e92eb164a3b3d23 /usr.sbin/pkg_add/pkg_create
parent181b010f3e7fb92df870946f8e586102481272ed (diff)
kill old constructs that have been deprecated since 2004.
Diffstat (limited to 'usr.sbin/pkg_add/pkg_create')
-rw-r--r--usr.sbin/pkg_add/pkg_create37
1 files changed, 5 insertions, 32 deletions
diff --git a/usr.sbin/pkg_add/pkg_create b/usr.sbin/pkg_add/pkg_create
index 3844a36238e..876e5afed6d 100644
--- a/usr.sbin/pkg_add/pkg_create
+++ b/usr.sbin/pkg_add/pkg_create
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg_create,v 1.83 2007/04/30 13:51:32 espie Exp $
+# $OpenBSD: pkg_create,v 1.84 2007/05/01 18:46:02 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -65,19 +65,6 @@ sub avert_duplicates_and_other_checks
$allfiles->{$n} = 1;
}
-my $warned;
-
-sub warn_once
-{
- my $self = shift;
- my $k = $self->keyword;
- if (!$warned->{$k}) {
- print STDERR "Error: \@$k is deprecated\n";
- $main::errors++;
- $warned->{$k} = 1;
- }
-}
-
sub makesum_plist
{
my ($self, $plist, $base, $stash, $infodir) = @_;
@@ -168,24 +155,6 @@ sub prepare_for_archival
return $o;
}
-package OpenBSD::PackingElement::PkgConflict;
-sub avert_duplicates_and_other_checks
-{
- shift->warn_once;
-}
-
-package OpenBSD::PackingElement::PkgDep;
-sub avert_duplicates_and_other_checks
-{
- shift->warn_once;
-}
-
-package OpenBSD::PackingElement::DirRm;
-sub avert_duplicates_and_other_checks
-{
- shift->warn_once;
-}
-
package OpenBSD::PackingElement::SpecialFile;
sub archive
{
@@ -598,6 +567,10 @@ if ($plist->{need_modules}) {
print STDERR "Error: some needed modules were not found\n";
$errors++;
}
+if ($plist->{deprecated}) {
+ print STDERR "Error: found obsolete constructs\n";
+ exit 1;
+}
unless (defined $opt_q && defined $opt_n) {