summaryrefslogtreecommitdiffstats
path: root/drakclassic
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2017-12-22 19:53:53 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2017-12-22 20:39:20 +0000
commitc3802a7f2b424abfb77c88104357877bf43ab2c6 (patch)
tree1137e17f09bbde154094fb7b6be11138bc2af53e /drakclassic
parent2e7c611d1b25c6ccf99585089c9372bdd3701f88 (diff)
downloaddrakiso-c3802a7f2b424abfb77c88104357877bf43ab2c6.tar
drakiso-c3802a7f2b424abfb77c88104357877bf43ab2c6.tar.gz
drakiso-c3802a7f2b424abfb77c88104357877bf43ab2c6.tar.bz2
drakiso-c3802a7f2b424abfb77c88104357877bf43ab2c6.tar.xz
drakiso-c3802a7f2b424abfb77c88104357877bf43ab2c6.zip
Add comand line option to set force and verbosity level.
Diffstat (limited to 'drakclassic')
-rwxr-xr-xdrakclassic17
1 files changed, 17 insertions, 0 deletions
diff --git a/drakclassic b/drakclassic
index b0d7ff2..59332fb 100755
--- a/drakclassic
+++ b/drakclassic
@@ -38,6 +38,14 @@ use MGA::DrakISO::BuildBoot;
use MGA::DrakISO::BuildISO;
###############################################################################
+# Globals
+###############################################################################
+
+$::verbose = 1;
+
+$::force = 0;
+
+###############################################################################
# Actions
###############################################################################
@@ -75,6 +83,8 @@ GetOptions(
"config=s" => \$config_path,
"settings=s" => \$settings_path,
"define=s" => \%{$build_object->{settings}},
+ "verbose=i" => \$::verbose,
+ "force" => \$::force,
) or Pod::Usage::pod2usage();
require standalone;
@@ -135,6 +145,13 @@ drakclassic [options]
set setting "key" to "value"
takes precedence over values from a settings file
+ --verbose <level>
+ set verbosity level to <level>
+ defaults to 1
+
+ --force forces the build to continue even if some package
+ conflicts or inconsistencies cannot be resolved
+
Examples:
drakclassic --clean