diff options
author | 2016-09-14 12:48:58 +0000 | |
---|---|---|
committer | 2016-09-14 12:48:58 +0000 | |
commit | 0e7b33796a26689ae08bd810a171301a2fe6c438 (patch) | |
tree | 80d4f437bdc55941a4bd04a56d97d6518e53198e | |
parent | Always set the MAC address when initializing the chip. (diff) | |
download | wireguard-openbsd-0e7b33796a26689ae08bd810a171301a2fe6c438.tar.xz wireguard-openbsd-0e7b33796a26689ae08bd810a171301a2fe6c438.zip |
gc pipe: support, makes less and less sense as time goes by
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageRepository.pm | 47 |
1 files changed, 1 insertions, 46 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm index f92d5ea7921..4a0ab216d09 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackageRepository.pm,v 1.131 2016/09/14 12:35:40 espie Exp $ +# $OpenBSD: PackageRepository.pm,v 1.132 2016/09/14 12:48:58 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -97,7 +97,6 @@ sub https() { 'OpenBSD::PackageRepository::HTTPS' } sub scp() { 'OpenBSD::PackageRepository::SCP' } sub file() { 'OpenBSD::PackageRepository::Local' } sub installed() { 'OpenBSD::PackageRepository::Installed' } -sub pipe() { 'OpenBSD::PackageRepository::Local::Pipe' } sub parse { @@ -123,8 +122,6 @@ sub parse return $class->file->parse_fullurl($r, $state); } elsif ($u =~ m/^inst\:$/io) { return $class->installed->parse_fullurl($r, $state); - } elsif ($u =~ m/^pipe\:$/io) { - return $class->pipe->parse_fullurl($r, $state); } else { if ($$r =~ m/^([a-z0-9][a-z0-9.]+\.[a-z0-9.]+)(\:|$)/ && !-d $1) { @@ -516,48 +513,6 @@ sub list return $l; } -package OpenBSD::PackageRepository::Local::Pipe; -our @ISA=qw(OpenBSD::PackageRepository::Local); - -sub urlscheme -{ - return 'pipe'; -} - -sub relative_url -{ - return ''; -} - -sub may_exist -{ - return 1; -} - -sub new -{ - my ($class, $state) = @_; - return bless { state => $state}, $class; -} - -sub open_pipe -{ - my ($self, $object) = @_; - if ($self->check_signed($object)) { - $self->make_error_file($object); - my $pid = open(my $fh, "-|"); - $self->did_it_fork($pid); - if ($pid) { - $object->{pid} = $pid; - return $self->uncompress_signed($object, $fh); - } else { - $self->signify_pipe($object); - } - } else { - return $self->uncompress($object, \*STDIN); - } -} - package OpenBSD::PackageRepository::Distant; our @ISA=qw(OpenBSD::PackageRepository); |