summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2007-11-12 23:06:13 +0100
committerCarlos Garnacho <carlosg@gnome.org>2007-11-12 23:06:58 +0100
commit833ebbbc39f5e838857928fb01631149c689cb4b (patch)
tree9caebdad30d0624e90d05b874b0b321f6ccb66ae
parentba519a060473cbcc38ae9f52f97d64863bcd11f8 (diff)
Make --verbose work again
-rw-r--r--Utils/Backend.pm4
-rw-r--r--Utils/Report.pm2
2 files changed, 3 insertions, 3 deletions
diff --git a/Utils/Backend.pm b/Utils/Backend.pm
index 100c3ac..878c1f7 100644
--- a/Utils/Backend.pm
+++ b/Utils/Backend.pm
@@ -90,7 +90,7 @@ sub print_platform_list
sub set_with_param
{
my ($tool, $arg_name, $value) = @_;
-
+
if ($$tool{$arg_name} ne "")
{
print STDERR "Error: You may specify --$arg_name only once.\n\n";
@@ -148,7 +148,7 @@ sub init
elsif ($arg eq "--module" || $arg eq "-m") { &set_module (\%tool, shift @args); }
elsif ($arg eq "--platform") { &set_dist (\%tool, shift @args); }
elsif ($arg eq "--disable-shutdown") { &set_disable_shutdown (\%tool); }
- elsif ($arg eq "--verbose" || $arg eq "-v") { &set_with_param (\%$tool, "do_verbose", 1); }
+ elsif ($arg eq "--verbose" || $arg eq "-v") { &set_with_param (\%tool, "do_verbose", 1); }
elsif ($arg eq "--list-platforms") { &print_platform_list (\%tool) }
else
{
diff --git a/Utils/Report.pm b/Utils/Report.pm
index ece1548..ce66731 100644
--- a/Utils/Report.pm
+++ b/Utils/Report.pm
@@ -125,7 +125,7 @@ sub do_report
$format = "$str\n";
$res = sprintf ($format, @args);
- if ($Utils::Backend::do_verbose ||
+ if ($Utils::Backend::tool{"do_verbose"} ||
$major eq "error" ||
$major eq "debug")
{