summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-28 10:04:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-28 10:04:00 +0000
commitf076742409681509eee3d28369b21f495ed19d42 (patch)
tree7d180ab33ab9c900cf14db9212c4797fa670229b /urpm/args.pm
parente45ec0d2d69b5f3e438cc2aa7ca3bf715d7df57a (diff)
downloadurpmi-f076742409681509eee3d28369b21f495ed19d42.tar
urpmi-f076742409681509eee3d28369b21f495ed19d42.tar.gz
urpmi-f076742409681509eee3d28369b21f495ed19d42.tar.bz2
urpmi-f076742409681509eee3d28369b21f495ed19d42.tar.xz
urpmi-f076742409681509eee3d28369b21f495ed19d42.zip
- add {debug} level messages
- add some debug message before downloading - always display the retrieved url (using {log})
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index 54b95022..41ed2b1e 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -108,6 +108,7 @@ my %options_spec = (
},
'bug=s' => \$options{bug},
'env=s' => \$::env,
+ 'debug' => sub { $urpm->{debug} = sub { print STDERR "$_[0]\n" } },
'verify-rpm!' => sub { $urpm->{options}{'verify-rpm'} = $_[1] },
'strict-arch!' => sub { $urpm->{options}{'strict-arch'} = $_[1] },
'norebuild!' => sub { $urpm->{options}{'build-hdlist-on-error'} = !$_[1] },
@@ -390,7 +391,7 @@ foreach my $k ("help|h", "wget", "curl", "prozilla", "proxy=s", "proxy-user=s",
$options_spec{'urpmi.addmedia'}{$k} = $options_spec{'urpmi.update'}{$k};
}
-foreach my $k ("probe-synthesis", "probe-hdlist")
+foreach my $k ("probe-synthesis", "probe-hdlist", 'debug')
{
$options_spec{'urpmi.addmedia'}{$k} =
$options_spec{urpme}{$k} =