summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-18 17:14:46 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-18 17:14:46 +0000
commita2bca43a4fa62b06b4dbaee88c495a5d6ff5245c (patch)
tree6d118624c9df8b8fb626710c847657f6a75d1e44 /urpm/args.pm
parent8ad21ded96d7c7ebe33a33aae621bf891d1170a7 (diff)
downloadurpmi-a2bca43a4fa62b06b4dbaee88c495a5d6ff5245c.tar
urpmi-a2bca43a4fa62b06b4dbaee88c495a5d6ff5245c.tar.gz
urpmi-a2bca43a4fa62b06b4dbaee88c495a5d6ff5245c.tar.bz2
urpmi-a2bca43a4fa62b06b4dbaee88c495a5d6ff5245c.tar.xz
urpmi-a2bca43a4fa62b06b4dbaee88c495a5d6ff5245c.zip
Implement a nicer default behaviour for --name
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index 81bb3dbc..8c7cd4ea 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -166,6 +166,11 @@ my %options_spec = (
conffiles => add_param_closure('conf_files'),
debug => \$::debug,
literal => \$::literal,
+ name => sub {
+ add_param_closure('name')->();
+ #- Remove default tag in front if --name is explicitly given
+ $::qf =~ s/^%default:?//;
+ },
qf => \$::qf,
'uniq|u' => \$::uniq,
'verbose|v' => \$::verbose,
@@ -334,7 +339,6 @@ foreach my $k (qw(
filename
files
group
- name
obsoletes
packager
provides