summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-06-11 23:44:38 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-06-11 23:44:38 +0000
commit4c78debdf8a55af8646be9d95820f97fb0b013fe (patch)
treed028ce6a7bc8eb14304f4b653bf670f078048b23
parentb4a97bb0f97a73489e0fb62607cf537f02bc68ce (diff)
don't call working() in -q mode.
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgCreate.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
index c42bc1e604e..9d55b6e8736 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.12 2010/06/09 10:47:05 espie Exp $
+# $OpenBSD: PkgCreate.pm,v 1.13 2010/06/11 23:44:37 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
@@ -536,7 +536,7 @@ sub read_fragments
my ($stack, $cont) = @_;
while(my $file = pop @$stack) {
while (my $_ = $file->readline) {
- $state->progress->working(2048);
+ $state->progress->working(2048) unless $state->opt('q');
if (m/^(\@comment\s+\$(?:Open)BSD\$)$/o) {
$_ = '@comment $'.'OpenBSD: '.basename($file->name).',v$';
}