summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2017-12-22 21:24:49 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2017-12-22 21:24:49 +0000
commit86fd4637d35646de3be8056a2a0074b5cf72571b (patch)
tree9f0873a3aa31aa4f47692d380bc3980f9bc8252a /lib
parent56dba1737921b1e3bdb3370ba3b6c98df80a0c4d (diff)
downloaddrakiso-86fd4637d35646de3be8056a2a0074b5cf72571b.tar
drakiso-86fd4637d35646de3be8056a2a0074b5cf72571b.tar.gz
drakiso-86fd4637d35646de3be8056a2a0074b5cf72571b.tar.bz2
drakiso-86fd4637d35646de3be8056a2a0074b5cf72571b.tar.xz
drakiso-86fd4637d35646de3be8056a2a0074b5cf72571b.zip
Reduce verbosity.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/MGA/DrakISO/BuildISO.pm1
-rw-r--r--lib/MGA/DrakISO/Utils.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/MGA/DrakISO/BuildISO.pm b/lib/MGA/DrakISO/BuildISO.pm
index ba7ca95..469662f 100755
--- a/lib/MGA/DrakISO/BuildISO.pm
+++ b/lib/MGA/DrakISO/BuildISO.pm
@@ -125,6 +125,7 @@ sub build_iso_image {
run_('date', '>', $date_file);
run_('xorrisofs',
+ if_($::verbose < 2, '-quiet'),
'-pad', '-l', '-R', '-J',
'-publisher', $build->{settings}{vendor},
'-preparer', 'drakiso',
diff --git a/lib/MGA/DrakISO/Utils.pm b/lib/MGA/DrakISO/Utils.pm
index c3533a4..b7dbcee 100644
--- a/lib/MGA/DrakISO/Utils.pm
+++ b/lib/MGA/DrakISO/Utils.pm
@@ -53,7 +53,7 @@ sub run_ {
my $targetarch = delete $options->{targetarch};
unshift @cmd, 'setarch', $targetarch if $targetarch;
}
- print STDERR "running " . (exists $options->{root} && "(in chroot) ") . join(' ', @cmd) . "\n";
+ print STDERR "running " . (exists $options->{root} && "(in chroot) ") . join(' ', @cmd) . "\n" if $::verbose > 1;
run_program::raw($options, @cmd);
}