From 95e623d3dd4dbf12e391a2ef1413547358e0e353 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 10 Jan 2008 17:35:47 +0000 Subject: move the list of known tags out of urpm/args.pm into urpmf, and remove duplicated list (nb: conf_files has been added to command-line, but this won't hurt afaik) --- urpmf | 47 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 34 insertions(+), 13 deletions(-) (limited to 'urpmf') diff --git a/urpmf b/urpmf index 35ceeb80..3893f7d5 100755 --- a/urpmf +++ b/urpmf @@ -87,6 +87,39 @@ usage: urpmf [options] pattern-expression exit(1); } +my %tags_per_media_info = ( + + synthesis => [ qw( + arch + conflicts + epoch + filename + group + obsoletes + provides + requires + size + suggests + summary + ) ], + + hdlist => [ qw( + buildhost + buildtime + conf_files + description + distribution + files + license + packager + sourcerpm + url + vendor + ) ], +); + +urpm::args::add_urpmf_cmdline_tags(map { @$_ } values %tags_per_media_info); + #- default options. our $env; # bug report directory our $excludemedia = ''; @@ -196,19 +229,7 @@ if ($env) { } my $_lock = urpm::lock::urpmi_db($urpm, '', nofatal => 1, wait => $options{wait_lock}); -my $need_xml = grep { $usedtags{$_} } qw( - buildhost - buildtime - conf_files - description - distribution - files - license - packager - sourcerpm - url - vendor -); +my $need_xml = grep { $usedtags{$_} } @{$tags_per_media_info{hdlist}}; urpm::media::configure($urpm, nocheck_access => 1, no_skiplist => 1, -- cgit v1.2.1