From a2bca43a4fa62b06b4dbaee88c495a5d6ff5245c Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 18 Oct 2005 17:14:46 +0000 Subject: Implement a nicer default behaviour for --name --- urpm/args.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'urpm/args.pm') 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 -- cgit v1.2.1