summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2014-01-18 01:10:37 +0000
committerMarc Espie <espie@cvs.openbsd.org>2014-01-18 01:10:37 +0000
commit8b735f80a8807ca0a38404bbb218aadab4666a6f (patch)
treee6b0f6bb927bd554e6391235fc450d83aafb2778 /usr.sbin
parent7d0dd1c90bc85390995e9ca8d754dcab98060c68 (diff)
involuntary sneak preview, revert
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgCreate.pm11
1 files changed, 2 insertions, 9 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
index 828b086944d..c8b29443c7b 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCreate.pm,v 1.95 2014/01/18 01:09:30 espie Exp $
+# $OpenBSD: PkgCreate.pm,v 1.96 2014/01/18 01:10:36 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
@@ -1192,14 +1192,7 @@ sub create_archive
{
my ($self, $state, $filename, $dir) = @_;
require IO::Compress::Gzip;
- require Compress::Raw::Zlib;
- my $level = $state->{subst}->value('COMPRESSION_LEVEL');
- if (defined $state->{signer}) {
- $level //= 6;
- } else {
- $level //= 1;
- }
- my $fh = IO::Compress::Gzip->new($filename, -Level => $level);
+ my $fh = IO::Compress::Gzip->new($filename);
return OpenBSD::Ustar->new($fh, $state, $dir);
}