aboutsummaryrefslogtreecommitdiffstats
path: root/genhdlist2
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-15 14:56:50 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-15 14:56:50 +0000
commit64f987aa690cec8c1369050b364d73bd27b56c56 (patch)
tree4bcd3688d5ec4287555eba6859c338be64601ade /genhdlist2
parent2cbd2357893b3f6da248d36d59466d0197e31e35 (diff)
downloadrpmtools-64f987aa690cec8c1369050b364d73bd27b56c56.tar
rpmtools-64f987aa690cec8c1369050b364d73bd27b56c56.tar.gz
rpmtools-64f987aa690cec8c1369050b364d73bd27b56c56.tar.bz2
rpmtools-64f987aa690cec8c1369050b364d73bd27b56c56.tar.xz
rpmtools-64f987aa690cec8c1369050b364d73bd27b56c56.zip
- genhdlist2:
o rename --xml-media-info into --xml-info (to be coherent with urpmi)
Diffstat (limited to 'genhdlist2')
-rw-r--r--genhdlist214
1 files changed, 9 insertions, 5 deletions
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 <dir>/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.