aboutsummaryrefslogtreecommitdiffstats
path: root/gendistrib
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2009-07-25 17:56:56 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2009-07-25 17:56:56 +0000
commit73275bd5abf49139ce27fd017718c77d078b075f (patch)
tree49690e867812b24495af44a2255002800b0462b2 /gendistrib
parent3a5cc385b08ee034462fdc6dd5650b1f704963b1 (diff)
downloadrpmtools-73275bd5abf49139ce27fd017718c77d078b075f.tar
rpmtools-73275bd5abf49139ce27fd017718c77d078b075f.tar.gz
rpmtools-73275bd5abf49139ce27fd017718c77d078b075f.tar.bz2
rpmtools-73275bd5abf49139ce27fd017718c77d078b075f.tar.xz
rpmtools-73275bd5abf49139ce27fd017718c77d078b075f.zip
add support for specifying xml-info-filter with media.cfg
Diffstat (limited to 'gendistrib')
-rwxr-xr-xgendistrib2
1 files changed, 2 insertions, 0 deletions
diff --git a/gendistrib b/gendistrib
index 501fd9e..3879571 100755
--- a/gendistrib
+++ b/gendistrib
@@ -140,12 +140,14 @@ if ($noemptymedia) {
foreach my $e (grep { !$_->{noneedrebuild} } @hdlists) {
print STDERR qq(building hdlist & synthesis for medium "$e->{descr}"\n) unless $nooutput;
my $file_deps = "$destinfodir/file-deps";
+ my $xml_info_filter = $distrib->getvalue($e->{media}, 'xml-info-filter');
my $options = join(' ',
'--allow-empty-media',
$nooutput ? '--quiet' : (),
$nobadrpm ? '--no-bad-rpm' : (),
$nomd5sum ? "--no-md5sum" : (),
$distrib->getvalue($e->{media}, 'xml-info') ? '--xml-info' : (),
+ $xml_info_filter ? "--xml-info-filter \'$xml_info_filter\'" : (),
-e $file_deps ? "--file-deps $file_deps" : (),
);
my $cmd = "genhdlist2 $options $e->{path}";