From 64f987aa690cec8c1369050b364d73bd27b56c56 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 15 Jan 2008 14:56:50 +0000 Subject: - genhdlist2: o rename --xml-media-info into --xml-info (to be coherent with urpmi) --- NEWS | 4 ++++ genhdlist2 | 14 +++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index fc146a3..c0536a9 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +- genhdlist2: + o rename --xml-media-info into --xml-info + (to be coherent with urpmi) + Version 5.3.4 - 18 December 2007, by Pascal "Pixel" Rigaux - genhdlist2: diff --git a/genhdlist2 b/genhdlist2 index 15eca66..d6f122b 100644 --- a/genhdlist2 +++ b/genhdlist2 @@ -15,7 +15,7 @@ sub usage () { } sub main() { - my %options = (xml_media_info => 'auto'); + my %options = (xml_info => 'auto'); GetOptions( 'clean' => \$options{no_incremental}, @@ -27,7 +27,7 @@ sub main() { 'no-hdlist' => \$options{no_hdlist}, 'allow-empty-media' => \$options{allow_empty_media}, 'file-deps=s' => \$options{file_deps}, - 'xml-media-info!' => \$options{xml_media_info}, + 'xml-info!' => \$options{xml_info}, 'media_info-dir=s' => \$options{media_info_dir}, 'h|help' => sub { usage(); exit 0 }, 'q|quiet' => sub { $options{verbose} = -1 }, @@ -93,10 +93,10 @@ sub do_it { read_file_deps($urpm, $options{file_deps}) if $options{file_deps}; - if ($options{xml_media_info} eq 'auto') { - $options{xml_media_info} = -e "$media_info_dir/info.xml.lzma"; + if ($options{xml_info} eq 'auto') { + $options{xml_info} = -e "$media_info_dir/info.xml.lzma"; } - my @xml_media_info = $options{xml_media_info} ? ('info', 'files', 'changelog') : (); + my @xml_media_info = $options{xml_info} ? ('info', 'files', 'changelog') : (); build($urpm, \%rpms_todo, $media_info_dir, $rpms_dir, \@xml_media_info, $options{no_incremental}, $options{no_hdlist}); build_synthesis($urpm, "$synthesis.tmp"); @@ -528,6 +528,10 @@ To allow building empty media, use this option. Write hdlist/synthesis in this directory instead of /media_info (mostly useful for debugging) +=item B<--xml-info> + +Force to generate xml info. By default genhdlist2 will only regenerate xml info files already there in media_info/ + =item B<-v> Be verbose. Use one more B<-v> to get even more verbose. -- cgit v1.2.1