summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-12-13 08:54:33 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-12-13 08:54:33 +0000
commitb39c328badaafd834c024c9d045b909d482c9b90 (patch)
treed42f564282f2c0cb3e6102e059011f259e385f9e /usr.sbin
parent803edea5dae19e43cf6e8b294fb97f5ef42300ad (diff)
force gzip to write package even if things don't compress.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/pkg_create4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_create b/usr.sbin/pkg_add/pkg_create
index 148b2072023..59080de0027 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.124 2009/11/17 10:16:41 espie Exp $
+# $OpenBSD: pkg_create,v 1.125 2009/12/13 08:54:32 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -720,7 +720,7 @@ if ($opt_n) {
local $SIG{'HUP'} = $h;
local $SIG{'KILL'} = $h;
local $SIG{'TERM'} = $h;
- open(my $fh, "|-", OpenBSD::Paths->gzip, "-o", $wname);
+ open(my $fh, "|-", OpenBSD::Paths->gzip, "-f", "-o", $wname);
my $wrarc = OpenBSD::Ustar->new($fh, $plist->infodir);
$plist->create_package($wrarc, $base, $opt_v);